There is a partial solution for this.

When I replace this 
<https://github.com/apereo/cas-gradle-overlay-template/blob/77fe2469e855aa995b3eff0b1394724a04897073/cas/build.gradle#L3>
 
line:

apply from: '
https://raw.githubusercontent.com/apereo/cas/master/gradle/overrides.gradle'

in cas/build.gradle file with the following line:

apply from: 
'https://raw.githubusercontent.com/apereo/cas/5.0.x/gradle/overrides.gradle'

only one library is still doubled and it is HikariCP.
Even if I write:

apply from: 
'https://raw.githubusercontent.com/apereo/cas/5.0.x/gradle/overrides.gradle'
ext["hikariVersion"] = "2.5.1"
ext["HikariCP.version"] = ext["hikariVersion"]

to make something like in that overrides.gradle file, mentioned library is 
doubled again.

By the way, I have noticed that "yellow" version of HikariCP comes in from 
Spring 
Boot 
<http://docs.spring.io/spring-boot/docs/1.4.1.RELEASE/reference/htmlsingle/#appendix-dependency-versions>
.

Any ideas?

On Monday, November 28, 2016 at 7:41:49 PM UTC+3, Yauheni Sidarenka wrote:
>
> I have bare Gradle Overlay Git repo of CAS 5.0.0, master branch, latest 
> commit - 426847c1690723401a82f1c274c10d7a4a210107.
> OS: Windows 7 Pro x64
> JDK: Oracle 8u60
>
> When I add in cas/build.gradle line 
>
> compile 
> "org.apereo.cas:cas-server-support-ehcache-ticket-registry:${project.'cas.version'}"
>
> after executing gradlew clean build these libraries will appear twice 
> (two versions) in WEB-INF/lib  in resulted war file (version of library 
> that was added by this dependency is in yellow):
>
> attoparser-2.0.0.RELEASE.jar
> attoparser-2.0.1.RELEASE.jar
> hibernate-core-5.2.2.Final.jar
> hibernate-core-5.2.4.Final.jar
> hibernate-entitymanager-5.2.2.Final.jar
> hibernate-entitymanager-5.2.4.Final.jar
> HikariCP-2.4.7.jar
> HikariCP-2.5.1.jar
> jackson-annotations-2.8.3.jar
> jackson-annotations-2.8.4.jar
> jackson-core-2.8.3.jar
> jackson-core-2.8.4.jar
> jackson-databind-2.8.3.jar
> jackson-databind-2.8.4.jar
> jackson-dataformat-yaml-2.8.3.jar
> jackson-dataformat-yaml-2.8.4.jar
> jackson-datatype-guava-2.8.3.jar
> jackson-datatype-guava-2.8.4.jar
> jackson-datatype-jsr310-2.8.3.jar
> jackson-datatype-jsr310-2.8.4.jar
> spring-aop-4.3.3.RELEASE.jar
> spring-aop-4.3.4.RELEASE.jar
> spring-beans-4.3.3.RELEASE.jar
> spring-beans-4.3.4.RELEASE.jar
> spring-context-4.3.3.RELEASE.jar
> spring-context-4.3.4.RELEASE.jar
> spring-context-support-4.3.3.RELEASE.jar
> spring-context-support-4.3.4.RELEASE.jar
> spring-core-4.3.3.RELEASE.jar
> spring-core-4.3.4.RELEASE.jar
> spring-expression-4.3.3.RELEASE.jar
> spring-expression-4.3.4.RELEASE.jar
> spring-jdbc-4.3.3.RELEASE.jar
> spring-jdbc-4.3.4.RELEASE.jar
> spring-jms-4.3.3.RELEASE.jar
> spring-jms-4.3.4.RELEASE.jar
> spring-messaging-4.3.3.RELEASE.jar
> spring-messaging-4.3.4.RELEASE.jar
> spring-orm-4.3.3.RELEASE.jar
> spring-orm-4.3.4.RELEASE.jar
> spring-tx-4.3.3.RELEASE.jar
> spring-tx-4.3.4.RELEASE.jar
> spring-web-4.3.3.RELEASE.jar
> spring-web-4.3.4.RELEASE.jar
> spring-webmvc-4.3.3.RELEASE.jar
> spring-webmvc-4.3.4.RELEASE.jar
> spring-websocket-4.3.3.RELEASE.jar
> spring-websocket-4.3.4.RELEASE.jar
> thymeleaf-3.0.1.RELEASE.jar
> thymeleaf-3.0.2.RELEASE.jar
> thymeleaf-spring4-3.0.1.RELEASE.jar
> thymeleaf-spring4-3.0.2.RELEASE.jar
> unbescape-1.1.3.RELEASE.jar
> unbescape-1.1.4.RELEASE.jar
>
> How to disable extra libraries and which are correct ones?
>

-- 
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/a9bf9f90-3f74-4791-9e13-9fd406f14cfb%40apereo.org.

Reply via email to