apply plugin: "java" apply plugin: "maven" group = "com.github.EsotericSoftware" version = "4.0-beta" ext { libgdxVersion = "1.9.14" } sourceSets.main.java.srcDirs = ["spine-libgdx/src"] sourceSets.test.java.srcDirs = ["spine-libgdx-tests/src"] repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots" } mavenCentral() jcenter() } dependencies { compile "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" } task myJavadocs(type: Javadoc) { source = sourceSets.main.allJava javadoc.options.addStringOption('Xdoclint:none', '-quiet') } task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives sourcesJar archives javadocJar }