Skip to content

Commit 8f7dd91

Browse files
committed
Upgrade gradle wrapper and configuration
1 parent c89753e commit 8f7dd91

File tree

3 files changed

+28
-14
lines changed

3 files changed

+28
-14
lines changed

build.gradle

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
11
plugins {
22
id "java"
33
id "maven-publish"
4+
id "com.github.sherter.google-java-format" version "0.9"
45
}
56

67
group = "com.github.malczuuu"
78
version = "3.1.0-SNAPSHOT"
89

9-
sourceCompatibility = "17"
10-
targetCompatibility = "17"
10+
java {
11+
toolchain {
12+
languageVersion = JavaLanguageVersion.of(17)
13+
}
14+
withSourcesJar()
15+
withJavadocJar()
16+
}
1117

1218
repositories {
1319
mavenCentral()
1420
}
1521

1622
dependencies {
17-
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.1")
18-
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.1")
19-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.1")
20-
}
23+
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
24+
testImplementation("org.junit.jupiter:junit-jupiter-params:5.12.2")
2125

22-
tasks.named("test") {
23-
useJUnitPlatform()
24-
}
25-
26-
java {
27-
withSourcesJar()
28-
withJavadocJar()
26+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.12.2")
27+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.12.2")
2928
}
3029

3130
publishing {
@@ -35,3 +34,11 @@ publishing {
3534
}
3635
}
3736
}
37+
38+
googleJavaFormat {
39+
toolVersion = "1.26.0"
40+
}
41+
42+
tasks.named("test") {
43+
useJUnitPlatform()
44+
}

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
2+
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
3+
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
4+
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
5+
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)