Skip to content

Commit 727c233

Browse files
committed
chore: fix gradle migration warnings
Prepare migration to gradle 9
1 parent 094a4df commit 727c233

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

build.gradle

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ plugins {
66
id 'com.diffplug.spotless' version '7.2.1'
77
}
88

9-
group 'yt.graven'
10-
version '1.0-SNAPSHOT'
9+
group = 'yt.graven'
10+
version = '1.0-SNAPSHOT'
1111

12-
sourceCompatibility = targetCompatibility = '17'
12+
java {
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
15+
}
1316

1417
repositories {
1518
mavenCentral()
1619
maven {
17-
url 'https://jitpack.io/'
20+
url = 'https://jitpack.io/'
1821
}
1922
}
2023

@@ -34,22 +37,21 @@ test {
3437
useJUnitPlatform()
3538
}
3639

37-
shadowJar {
38-
project.configurations.implementation.canBeResolved(true)
39-
configurations = [project.configurations.implementation]
40-
}
41-
4240
application {
43-
mainClass.set('yt.graven.gravensupport.Main')
44-
setApplicationDefaultJvmArgs(["--add-opens", "java.base/java.net=ALL-UNNAMED"])
41+
mainClass = 'yt.graven.gravensupport.Main'
42+
applicationDefaultJvmArgs = ["--add-opens", "java.base/java.net=ALL-UNNAMED"]
4543
}
4644

45+
4746
compileJava {
47+
options.encoding = "UTF-8"
48+
options.compilerArgs += "--enable-preview"
49+
}
50+
51+
jar {
4852
manifest {
4953
attributes('Main-Class': 'yt.graven.gravensupport.Main')
5054
}
51-
options.encoding = "UTF-8"
52-
options.compilerArgs += "--enable-preview"
5355
}
5456

5557

0 commit comments

Comments
 (0)