Skip to content

Commit 03eade5

Browse files
committed
Migrated Build System to Gradle 8.9 and Java 17
1 parent a9bde29 commit 03eade5

File tree

3 files changed

+34
-28
lines changed

3 files changed

+34
-28
lines changed

Diff for: build.gradle

+31-27
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,50 @@
1-
apply plugin: 'java'
2-
apply plugin: 'checkstyle'
1+
plugins {
2+
id 'java'
3+
}
34

45
group = 'com.fishercoder'
56
version = '1.0-SNAPSHOT'
67

7-
javadoc.options.encoding = 'UTF-8'
8-
compileJava.options.encoding = 'UTF-8'
9-
10-
checkstyle {
11-
//include ( '**/*.java')
12-
configFile = file("${rootDir}/fishercoder_checkstyle.xml")
8+
java {
9+
toolchain {
10+
languageVersion = JavaLanguageVersion.of(17)
11+
}
1312
}
1413

15-
sourceSets {
16-
main {
17-
java {
18-
srcDir 'src/fishercoder'
19-
}
20-
}
14+
tasks.javadoc {
15+
options.encoding = 'UTF-8'
2116
}
2217

23-
description = """"""
18+
tasks.compileJava {
19+
options.encoding = 'UTF-8'
20+
}
2421

2522
repositories {
2623
mavenCentral()
27-
maven { url "http://repo.maven.apache.org/maven2" }
2824
}
2925

3026
dependencies {
31-
compile 'com.google.code.gson:gson:2.8.0'
32-
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
27+
implementation 'com.google.code.gson:gson:2.10.1'
28+
implementation 'org.apache.commons:commons-collections4:4.0'
29+
30+
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.3'
31+
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3'
3332

34-
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
35-
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
33+
testImplementation 'org.assertj:assertj-core:3.11.1'
34+
compileOnly 'org.projectlombok:lombok:1.18.32'
35+
annotationProcessor 'org.projectlombok:lombok:1.18.32'
36+
testCompileOnly 'org.projectlombok:lombok:1.18.32'
37+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
38+
}
3639

37-
testCompile("org.assertj:assertj-core:3.11.1")
38-
compileOnly 'org.projectlombok:lombok:1.18.12'
39-
annotationProcessor 'org.projectlombok:lombok:1.18.12'
40-
testCompileOnly 'org.projectlombok:lombok:1.18.12'
41-
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
40+
testing {
41+
suites {
42+
test {
43+
useJUnitJupiter()
44+
}
45+
}
4246
}
4347

44-
test {
45-
useJUnitPlatform()
48+
tasks.withType(Test).configureEach {
49+
maxParallelForks = Runtime.runtime.availableProcessors()
4650
}

Diff for: gradle/wrapper/gradle-wrapper.jar

-10.7 KB
Binary file not shown.

Diff for: gradle/wrapper/gradle-wrapper.properties

+3-1
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-4.8.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)