diff --git a/build.gradle b/build.gradle new file mode 100644 index 000000000..ca5c292ed --- /dev/null +++ b/build.gradle @@ -0,0 +1,12 @@ +buildscript { repositories { mavenCentral() }} + +plugins { + id "com.diffplug.spotless" version "5.14.0" +} + +spotless { + java { + target 'spine-libgdx/**/*.java' + eclipse().configFile('formatters/eclipse-formatter.xml') + } +} \ No newline at end of file diff --git a/formatters/eclipse-formatter.xml b/formatters/eclipse-formatter.xml new file mode 100644 index 000000000..892fe9c2d --- /dev/null +++ b/formatters/eclipse-formatter.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 72eebcce6..f2e1eb1fd 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-5.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/spine-libgdx/build.gradle b/spine-libgdx/build.gradle index a9103555c..50d66d31a 100644 --- a/spine-libgdx/build.gradle +++ b/spine-libgdx/build.gradle @@ -1,11 +1,11 @@ apply plugin: "java" -apply plugin: "maven" +apply plugin: "maven-publish" group = "com.github.EsotericSoftware" -version = "4.0-beta" +version = "4.0" ext { - libgdxVersion = "1.9.14" + libgdxVersion = "1.10.0" } sourceSets.main.java.srcDirs = ["spine-libgdx/src"] @@ -16,17 +16,16 @@ repositories { url "https://oss.sonatype.org/content/repositories/snapshots" } mavenCentral() - jcenter() } dependencies { - compile "com.badlogicgames.gdx:gdx:$libgdxVersion" + implementation "com.badlogicgames.gdx:gdx:$libgdxVersion" - testCompile "com.badlogicgames.gdx:gdx:$libgdxVersion" - testCompile "com.badlogicgames.gdx:gdx-backend-lwjgl:$libgdxVersion" - testCompile "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop" - testCompile "com.badlogicgames.gdx:gdx-box2d:$libgdxVersion" - testCompile "com.badlogicgames.gdx:gdx-box2d-platform:$libgdxVersion:natives-desktop" + testImplementation "com.badlogicgames.gdx:gdx:$libgdxVersion" + testImplementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$libgdxVersion" + testImplementation "com.badlogicgames.gdx:gdx-platform:$libgdxVersion:natives-desktop" + testImplementation "com.badlogicgames.gdx:gdx-box2d:$libgdxVersion" + testImplementation "com.badlogicgames.gdx:gdx-box2d-platform:$libgdxVersion:natives-desktop" }