File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ buildscript {
1818configure(subprojects) {
1919 apply plugin : ' java-library'
2020 apply plugin : ' kotlin'
21- sourceCompatibility = 11
21+ java {
22+ sourceCompatibility = JavaVersion . VERSION_11
23+ targetCompatibility = JavaVersion . VERSION_11
24+ }
2225 compileJava {
2326 options. incremental = true
2427 }
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ else {
2323}
2424
2525sourceSets. main. resources. srcDirs + = [ rootProject. file(' assets' ). path ]
26- mainClassName = ' org.demoth.cake.lwjgl3.Lwjgl3GameLauncher'
27- application. setMainClass(mainClassName)
26+ def mainClassName = ' org.demoth.cake.lwjgl3.Lwjgl3GameLauncher'
27+ application {
28+ mainClass. set(mainClassName)
29+ }
2830java. sourceCompatibility = 11
2931java. targetCompatibility = 11
3032
6264 }
6365// setting the manifest makes the JAR runnable.
6466 manifest {
65- attributes ' Main-Class' : project . mainClassName
67+ attributes ' Main-Class' : mainClassName
6668 }
6769// this last step may help on some OSes that need extra instruction to make runnable JARs.
6870 doLast {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ project(":cake:lwjgl3") {
99 binaries {
1010 main {
1111 imageName = appName
12- mainClass = project . mainClassName
12+ mainClass. set( ' org.demoth.cake.lwjgl3.Lwjgl3GameLauncher ' )
1313 requiredVersion = ' 23.0'
1414 buildArgs. add(" -march=compatibility" )
1515 jvmArgs. addAll(" -Dfile.encoding=UTF8" )
You can’t perform that action at this time.
0 commit comments