Skip to content

Commit 4f98b5d

Browse files
Merge pull request #105 from regulaforensics/upload-to-maven
Upload to maven
2 parents 1f05ca7 + f293153 commit 4f98b5d

6 files changed

Lines changed: 172 additions & 130 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@ allprojects {
88
group = "com.regula.documentreader"
99

1010
repositories {
11-
jcenter()
11+
google()
12+
mavenCentral()
1213
}
1314
}
1415

1516
idea {
1617
project {
17-
languageLevel = IdeaLanguageLevel(JavaVersion.VERSION_1_7)
18+
languageLevel = IdeaLanguageLevel(JavaVersion.VERSION_11)
1819
}
1920
}

client/build.gradle.kts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ plugins {
55
}
66

77
java {
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

1717
dependencies {
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

gradle/wrapper/gradle-wrapper.jar

626 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 153 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)