Moved to package prefixes and added src split for resouces
22
build.gradle
|
@ -55,17 +55,7 @@ project(":demo4d-numberxd") {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project(":desktop") {
|
project(":demo4d-gdxapp") {
|
||||||
apply plugin: "java-library"
|
|
||||||
dependencies {
|
|
||||||
implementation project(":core")
|
|
||||||
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
|
||||||
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
|
||||||
api "games.spooky.gdx:gdx-nativefilechooser-desktop:$nativefilechooserVersion"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
project(":core") {
|
|
||||||
apply plugin: "java-library"
|
apply plugin: "java-library"
|
||||||
dependencies {
|
dependencies {
|
||||||
//api "org.x4o:x4o-driver:$x4oVersion"
|
//api "org.x4o:x4o-driver:$x4oVersion"
|
||||||
|
@ -79,3 +69,13 @@ project(":core") {
|
||||||
api "games.spooky.gdx:gdx-nativefilechooser:$nativefilechooserVersion"
|
api "games.spooky.gdx:gdx-nativefilechooser:$nativefilechooserVersion"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project(":demo4d-gdxapp-desktop") {
|
||||||
|
apply plugin: "java-library"
|
||||||
|
dependencies {
|
||||||
|
implementation project(":demo4d-gdxapp")
|
||||||
|
api "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
|
||||||
|
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
||||||
|
api "games.spooky.gdx:gdx-nativefilechooser-desktop:$nativefilechooserVersion"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
sourceCompatibility = appJvmCode
|
|
||||||
[compileJava, compileTestJava]*.options*.encoding = appEncoding
|
|
||||||
|
|
||||||
sourceSets.main.java.srcDirs = [ "src/", "resources/" ]
|
|
||||||
|
|
||||||
eclipse.project.name = appName + "-core"
|
|
|
@ -1,11 +1,11 @@
|
||||||
sourceCompatibility = appJvmCode
|
sourceCompatibility = appJvmCode
|
||||||
[compileJava, compileTestJava]*.options*.encoding = appEncoding
|
[compileJava, compileTestJava]*.options*.encoding = appEncoding
|
||||||
|
|
||||||
sourceSets.main.java.srcDirs = [ "src/" ]
|
sourceSets.main.java.srcDirs = [ "src/main/"]
|
||||||
sourceSets.main.resources.srcDirs = ["../core/assets"]
|
sourceSets.main.resources.srcDirs = ["../demo4d-gdxapp/assets"]
|
||||||
|
|
||||||
project.ext.mainClassName = "love.distributedrebirth.demo4d.desktop.DesktopLauncher"
|
project.ext.mainClassName = "love.distributedrebirth.demo4d.desktop.DesktopLauncher"
|
||||||
project.ext.assetsDir = new File("../core/assets")
|
project.ext.assetsDir = new File("../demo4d-gdxapp/assets")
|
||||||
|
|
||||||
task run(dependsOn: classes, type: JavaExec) {
|
task run(dependsOn: classes, type: JavaExec) {
|
||||||
main = project.mainClassName
|
main = project.mainClassName
|
||||||
|
@ -35,7 +35,4 @@ task dist(type: Jar) {
|
||||||
with jar
|
with jar
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
dist.dependsOn classes
|
dist.dependsOn classes
|
||||||
|
|
||||||
eclipse.project.name = appName + "-desktop"
|
|
Before Width: | Height: | Size: 373 KiB After Width: | Height: | Size: 373 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
7
demo4d-gdxapp/build.gradle
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
sourceCompatibility = appJvmCode
|
||||||
|
[compileJava, compileTestJava]*.options*.encoding = appEncoding
|
||||||
|
|
||||||
|
sourceSets.main.java.srcDirs = [ "src/main/"]
|
||||||
|
sourceSets.main.resources.srcDirs = [ "src/resources/" ]
|
||||||
|
sourceSets.test.java.srcDirs = [ "src/test/"]
|
||||||
|
sourceSets.test.resources.srcDirs = [ "src/test-resources/" ]
|
|
@ -1 +1 @@
|
||||||
include 'desktop', 'core', 'demo4d-bassboonyd', 'demo4d-numberxd'
|
include 'demo4d-gdxapp-desktop', 'demo4d-gdxapp', 'demo4d-bassboonyd', 'demo4d-numberxd'
|