|
@@ -7,11 +7,17 @@ plugins {
|
|
group 'com.mygame'
|
|
group 'com.mygame'
|
|
version '1.0'
|
|
version '1.0'
|
|
|
|
|
|
-mainClassName = "com.mygame.Main"
|
|
|
|
|
|
+application {
|
|
|
|
+ applicationName = '${name}'
|
|
|
|
+ mainClass = 'com.mygame.Main'
|
|
|
|
+ // Mac OS with LWJGL 3 needs to be started with this JVM argument
|
|
|
|
+ if (System.getProperty("os.name").toLowerCase().contains("mac")) {
|
|
|
|
+ applicationDefaultJvmArgs = ['-XstartOnFirstThread']
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
|
|
repositories {
|
|
repositories {
|
|
mavenCentral()
|
|
mavenCentral()
|
|
- jcenter()
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
}
|
|
|
|
|
|
@@ -45,7 +51,10 @@ dependencies {
|
|
implementation "org.jmonkeyengine:jme3-core:$jmeVer"
|
|
implementation "org.jmonkeyengine:jme3-core:$jmeVer"
|
|
implementation "org.jmonkeyengine:jme3-desktop:$jmeVer"
|
|
implementation "org.jmonkeyengine:jme3-desktop:$jmeVer"
|
|
<#if jmeVersion.versionInfo.major gt 3 || (jmeVersion.versionInfo.major == 3 && jmeVersion.versionInfo.minor gte 6 )>
|
|
<#if jmeVersion.versionInfo.major gt 3 || (jmeVersion.versionInfo.major == 3 && jmeVersion.versionInfo.minor gte 6 )>
|
|
- implementation "org.jmonkeyengine:jme3-awt-dialogs:$jmeVer"
|
|
|
|
|
|
+ // Mac OS with LWJGL 3 doesn't allow AWT/Swing
|
|
|
|
+ if (!System.getProperty("os.name").toLowerCase().contains("mac")) {
|
|
|
|
+ implementation "org.jmonkeyengine:jme3-awt-dialogs:$jmeVer"
|
|
|
|
+ }
|
|
</#if>
|
|
</#if>
|
|
<#if lwjglLibrary.isCoreJmeLibrary == true>
|
|
<#if lwjglLibrary.isCoreJmeLibrary == true>
|
|
implementation "${lwjglLibrary.groupId}:${lwjglLibrary.artifactId}:$jmeVer"
|
|
implementation "${lwjglLibrary.groupId}:${lwjglLibrary.artifactId}:$jmeVer"
|
|
@@ -99,7 +108,7 @@ dependencies {
|
|
|
|
|
|
jar {
|
|
jar {
|
|
manifest {
|
|
manifest {
|
|
- attributes 'Main-Class': "$mainClassName"
|
|
|
|
|
|
+ attributes 'Main-Class': application.mainClass
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -110,5 +119,5 @@ java {
|
|
}
|
|
}
|
|
|
|
|
|
wrapper {
|
|
wrapper {
|
|
- gradleVersion = '7.6'
|
|
|
|
|
|
+ gradleVersion = '8.4'
|
|
}
|
|
}
|