Skip to content

Commit 7f9bf6c

Browse files
committed
Upgrade Gradle to 9 along with JDK and Spotless
1 parent 34e6053 commit 7f9bf6c

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ plugins {
1313
id 'signing'
1414
id 'jacoco'
1515
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
16-
id "com.diffplug.spotless" version "6.13.0"
16+
id "com.diffplug.spotless" version "6.25.0"
1717
}
1818

1919
group = 'com.meilisearch.sdk'
20-
archivesBaseName = 'meilisearch-java'
2120
version = '0.15.0'
2221

22+
base {
23+
archivesName.set('meilisearch-java')
24+
}
25+
2326
jacoco {
2427
toolVersion = "0.8.8"
2528
reportsDirectory = layout.buildDirectory.dir("$projectDir/tmp/coverage")
@@ -117,8 +120,8 @@ task integrationTest(type: Test) {
117120
}
118121

119122
java {
120-
sourceCompatibility = JavaVersion.VERSION_1_8
121-
targetCompatibility = JavaVersion.VERSION_1_8
123+
sourceCompatibility = JavaVersion.VERSION_17
124+
targetCompatibility = JavaVersion.VERSION_17
122125

123126
withJavadocJar()
124127
withSourcesJar()
@@ -193,7 +196,7 @@ spotless {
193196
// don't need to set target, it is inferred from java
194197

195198
// apply a specific flavor of google-java-format
196-
googleJavaFormat('1.7').aosp()
199+
googleJavaFormat('1.10.0').aosp()
197200
}
198201
}
199202

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
package:
3-
image: azul/zulu-openjdk:11-latest
3+
image: azul/zulu-openjdk:17-latest
44
tty: true
55
stdin_open: true
66
working_dir: /home/package
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)