@@ -5,8 +5,8 @@ plugins {
55}
66
77java {
8- sourceCompatibility = JavaVersion .VERSION_1_7
9- targetCompatibility = JavaVersion .VERSION_1_7
8+ sourceCompatibility = JavaVersion .VERSION_11
9+ targetCompatibility = JavaVersion .VERSION_11
1010 withSourcesJar()
1111}
1212
@@ -15,16 +15,20 @@ sourceSets.main {
1515}
1616
1717dependencies {
18- implementation(" com.squareup.okhttp3:okhttp:3.14.7 " )
18+ implementation(" com.squareup.okhttp3:okhttp:4.12.0 " )
1919 implementation(" com.squareup.okhttp3:logging-interceptor:3.14.7" )
2020 implementation(" com.google.code.gson:gson:2.8.6" )
2121 implementation(" io.gsonfire:gson-fire:1.8.4" )
22- implementation(" org.threeten:threetenbp:1.4.3 " )
22+ implementation(" org.threeten:threetenbp:1.6.9 " )
2323 implementation(" io.swagger:swagger-annotations:1.5.24" )
2424 implementation(" javax.annotation:javax.annotation-api:1.3.2" )
2525 implementation(" com.google.code.findbugs:jsr305:3.0.2" )
2626}
2727
28+ tasks.withType<Jar > {
29+ duplicatesStrategy = DuplicatesStrategy .EXCLUDE
30+ }
31+
2832/* ----------- Publishing config ------------------- */
2933// supressed for local development
3034// if you need to publish from local machine, create `gradle.properties` file in a project root and add 3 vairables:
@@ -48,9 +52,12 @@ if (project.hasProperty("regulaforensicsMavenUser")) {
4852
4953 val releasesRepoUrl = uri(" sftp://maven.regulaforensics.com:22/RegulaDocumentReaderWebClient" )
5054 val betaRepoUrl = uri(" sftp://maven.regulaforensics.com:22/RegulaDocumentReaderWebClient/Beta" )
55+ val nightlyRepoUrl = uri(" sftp://ftp.regula.local:22/RegulaDocumentReaderWebClient" )
5156
5257 name = " regulaforensics"
53- url = if (version.toString().contains(" beta" )) betaRepoUrl else releasesRepoUrl
58+ url = if (version.toString().contains(" beta" )) betaRepoUrl
59+ else if (version.toString().contains(" nightly" )) nightlyRepoUrl
60+ else releasesRepoUrl
5461 credentials {
5562 username = regulaforensicsMavenUser
5663 password = regulaforensicsMavenPassword
0 commit comments