mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[libgdx] Prettify Gradle build.
# Conflicts: # .gitignore
This commit is contained in:
parent
90537ca2d9
commit
26c2ed010b
@ -7,6 +7,10 @@ ext {
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: "java"
|
||||
|
||||
sourceSets.main.java.srcDirs = ["src"]
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
|
||||
@ -15,33 +19,14 @@ allprojects {
|
||||
}
|
||||
|
||||
project("spine-libgdx") {
|
||||
apply plugin: "java"
|
||||
sourceSets.main.java.srcDirs = ["src"]
|
||||
apply plugin: "java-library"
|
||||
|
||||
dependencies {
|
||||
implementation "com.badlogicgames.gdx:gdx:$libgdxVersion"
|
||||
}
|
||||
}
|
||||
|
||||
project("spine-libgdx-tests") {
|
||||
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-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"]
|
||||
configure(subprojects - project("spine-libgdx")) {
|
||||
sourceSets.main.resources.srcDirs = ["assets"]
|
||||
|
||||
dependencies {
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
// includeBuild "../../libgdx"
|
||||
// rootProject.name = "spine-libgdx-parent"
|
||||
|
||||
include ":spine-libgdx"
|
||||
include ":spine-libgdx-tests"
|
||||
include ":spine-skeletonviewer"
|
||||
Loading…
x
Reference in New Issue
Block a user