@@ -22,10 +22,10 @@ sourceSets.main.resources.srcDirs += [ rootProject.file('assets').path ]
22
22
mainClassName = ' org.toadallyarmed.lwjgl3.Lwjgl3Launcher'
23
23
application. setMainClass(mainClassName)
24
24
eclipse. project. name = appName + ' -lwjgl3'
25
- java. sourceCompatibility = 17
26
- java. targetCompatibility = 17
25
+ java. sourceCompatibility = 16
26
+ java. targetCompatibility = 16
27
27
if (JavaVersion . current(). isJava9Compatible()) {
28
- compileJava. options. release. set(17 )
28
+ compileJava. options. release. set(16 )
29
29
}
30
30
31
31
dependencies {
@@ -122,29 +122,32 @@ construo {
122
122
version. set(" $projectVersion " )
123
123
124
124
targets. configure {
125
- create (" linuxX64" , Target.Linux ) {
125
+ register (" linuxX64" , Target.Linux ) {
126
126
architecture. set(Target.Architecture . X86_64 )
127
- jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz" )
127
+ jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_x64_linux_hotspot_17.0.15_6.tar.gz" )
128
+ // Linux does not currently have a way to set the icon on the executable
128
129
}
129
- create (" macM1" , Target.MacOs ) {
130
+ register (" macM1" , Target.MacOs ) {
130
131
architecture. set(Target.Architecture . AARCH64 )
131
- jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7 /OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.12_7 .tar.gz" )
132
+ jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6 /OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.15_6 .tar.gz" )
132
133
// macOS needs an identifier
133
134
identifier. set(" org.toadallyarmed." + appName)
134
- // Optional: icon for macOS
135
+ // Optional: icon for macOS, as an ICNS file
135
136
macIcon. set(project. file(" icons/logo.icns" ))
136
137
}
137
- create (" macX64" , Target.MacOs ) {
138
+ register (" macX64" , Target.MacOs ) {
138
139
architecture. set(Target.Architecture . X86_64 )
139
- jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7 /OpenJDK17U-jdk_x64_mac_hotspot_17.0.12_7 .tar.gz" )
140
+ jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6 /OpenJDK17U-jdk_x64_mac_hotspot_17.0.15_6 .tar.gz" )
140
141
// macOS needs an identifier
141
142
identifier. set(" org.toadallyarmed." + appName)
142
- // Optional: icon for macOS
143
+ // Optional: icon for macOS, as an ICNS file
143
144
macIcon. set(project. file(" icons/logo.icns" ))
144
145
}
145
- create (" winX64" , Target.Windows ) {
146
+ register (" winX64" , Target.Windows ) {
146
147
architecture. set(Target.Architecture . X86_64 )
147
- jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_windows_hotspot_17.0.12_7.zip" )
148
+ // Optional: icon for Windows, as a PNG
149
+ icon. set(project. file(" icons/logo.png" ))
150
+ jdkUrl. set(" https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.15%2B6/OpenJDK17U-jdk_x64_windows_hotspot_17.0.15_6.zip" )
148
151
// Uncomment the next line to show a console when the game runs, to print messages.
149
152
// useConsole.set(true)
150
153
}
0 commit comments