Native libraries publishing artifacts, closes #43

This commit is contained in:
Emux
2016-07-04 12:41:56 +03:00
parent b3217ae2c0
commit c389abc7a2
32 changed files with 50 additions and 10 deletions

View File

@@ -5,14 +5,12 @@ apply plugin: 'application'
dependencies {
compile project(':vtm-gdx')
compile project(':vtm-themes')
compile files('vtm-natives-desktop.jar')
compile files('natives')
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile "com.badlogicgames.gdx:gdx-backend-jglfw:$gdxVersion"
compile 'org.slf4j:slf4j-simple:1.7.21'
}
mainClassName = 'org.oscim.gdx.GdxMapApp'
sourceSets {
main {
java.srcDirs = ['src']
@@ -20,6 +18,16 @@ sourceSets {
}
}
task nativesJar(type: Jar) {
classifier = 'natives'
from('natives')
}
artifacts {
archives nativesJar
}
mainClassName = 'org.oscim.gdx.GdxMapApp'
run { ignoreExitValue = true }
// Automated Gradle project deployment to Sonatype OSSRH