File tree Expand file tree Collapse file tree 3 files changed +28
-14
lines changed Expand file tree Collapse file tree 3 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id " java"
33 id " maven-publish"
4+ id " com.github.sherter.google-java-format" version " 0.9"
45}
56
67group = " com.github.malczuuu"
78version = " 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
1218repositories {
1319 mavenCentral()
1420}
1521
1622dependencies {
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
3130publishing {
@@ -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+ }
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =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
46zipStoreBase =GRADLE_USER_HOME
57zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments