[libgdx] Prettify Gradle build.

# Conflicts:
#	.gitignore
This commit is contained in:
Mario Zechner 2022-01-23 02:16:39 +01:00
parent 90537ca2d9
commit 26c2ed010b
2 changed files with 7 additions and 24 deletions

View File

@ -7,6 +7,10 @@ ext {
} }
allprojects { allprojects {
apply plugin: "java"
sourceSets.main.java.srcDirs = ["src"]
repositories { repositories {
mavenLocal() mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
@ -15,37 +19,18 @@ allprojects {
} }
project("spine-libgdx") { project("spine-libgdx") {
apply plugin: "java" apply plugin: "java-library"
sourceSets.main.java.srcDirs = ["src"]
dependencies { dependencies {
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion" implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
} }
} }
project("spine-libgdx-tests") { configure(subprojects - project("spine-libgdx")) {
apply plugin: "java"
sourceSets.main.java.srcDirs = ["src"]
sourceSets.main.resources.srcDirs = ["assets"] sourceSets.main.resources.srcDirs = ["assets"]
dependencies { dependencies {
implementation project(":spine-libgdx") implementation project(":spine-libgdx")
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-lwjgl3-glfw-awt-macos:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-box2d:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-box2d-platform:$libgdxVersion:natives-desktop"
}
}
project("spine-skeletonviewer") {
apply plugin: "java"
sourceSets.main.java.srcDirs = ["src"]
sourceSets.main.resources.srcDirs = ["assets"]
dependencies {
implementation project(":spine-libgdx")
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion" implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop" implementation "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$libgdxVersion" implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$libgdxVersion"

View File

@ -1,6 +1,4 @@
// includeBuild "../../libgdx" // includeBuild "../../libgdx"
// rootProject.name = "spine-libgdx-parent"
include ":spine-libgdx" include ":spine-libgdx"
include ":spine-libgdx-tests" include ":spine-libgdx-tests"
include ":spine-skeletonviewer" include ":spine-skeletonviewer"