I have solved this problem. Instead of writing this
ext["hikariVersion"] = "2.5.1" ext["HikariCP.version"] = ext["hikariVersion"] in the top of cas/build.gradle file, I have added this compile "com.zaxxer:HikariCP:2.5.1" to dependencies section. The solution is pretty straightforward but it saves my time. Many thanks to everyone! On Tuesday, November 29, 2016 at 7:28:15 PM UTC+3, Yauheni Sidarenka wrote: > > 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/1d86d386-0403-4526-a695-1480d644e741%40apereo.org.
