Skip to content

Commit 1fb4d4a

Browse files
committed
Migrated to Gradle version 8.9
1 parent 25760b4 commit 1fb4d4a

File tree

5 files changed

+268
-164
lines changed

5 files changed

+268
-164
lines changed

build.gradle

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
1-
apply plugin: 'java'
2-
apply plugin: 'checkstyle'
1+
plugins {
2+
id 'java'
3+
id 'checkstyle'
4+
}
35

46
group = 'com.fishercoder'
57
version = '1.0-SNAPSHOT'
68

7-
javadoc.options.encoding = 'UTF-8'
8-
compileJava.options.encoding = 'UTF-8'
9+
java {
10+
sourceCompatibility = JavaVersion.VERSION_1_8
11+
targetCompatibility = JavaVersion.VERSION_1_8
12+
toolchain {
13+
languageVersion = JavaLanguageVersion.of(8)
14+
}
15+
}
16+
17+
tasks.withType(JavaCompile) {
18+
options.encoding = 'UTF-8'
19+
}
20+
21+
tasks.withType(Javadoc) {
22+
options.encoding = 'UTF-8'
23+
}
924

1025
checkstyle {
11-
//include ( '**/*.java')
1226
configFile = file("${rootDir}/fishercoder_checkstyle.xml")
1327
}
1428

@@ -20,34 +34,32 @@ sourceSets {
2034
}
2135
}
2236

23-
description = """"""
24-
25-
sourceCompatibility = 1.8
26-
targetCompatibility = 1.8
37+
description = ""
2738

2839
repositories {
2940
mavenCentral()
30-
maven { url "http://repo.maven.apache.org/maven2" }
41+
maven { url "https://repo.maven.apache.org/maven2" }
3142
}
3243

3344
dependencies {
34-
compile 'com.google.code.gson:gson:2.8.0'
35-
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
45+
implementation 'com.google.code.gson:gson:2.8.0'
46+
implementation 'org.apache.commons:commons-collections4:4.0'
3647

37-
// TODO: to remove Junit4 after all tests are migrated to Junit5
38-
compile 'junit:junit:4.13'
39-
testCompile "junit:junit:4.13.1"
48+
// TODO: to remove Junit4 after all tests are migrated to Junit5
49+
implementation 'junit:junit:4.13'
50+
testImplementation 'junit:junit:4.13.1'
4051

4152
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
4253
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
4354

44-
testCompile("org.assertj:assertj-core:3.11.1")
55+
testImplementation 'org.assertj:assertj-core:3.11.1'
56+
4557
compileOnly 'org.projectlombok:lombok:1.18.12'
4658
annotationProcessor 'org.projectlombok:lombok:1.18.12'
4759
testCompileOnly 'org.projectlombok:lombok:1.18.12'
4860
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
4961
}
5062

51-
test {
63+
tasks.test {
5264
useJUnitPlatform()
5365
}

gradle/wrapper/gradle-wrapper.jar

-10.7 KB
Binary file not shown.
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-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)