File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1417repositories {
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-
4240application {
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+
4746compileJava {
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
You can’t perform that action at this time.
0 commit comments