38 lines
852 B
Groovy
38 lines
852 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'maven'
|
|
apply plugin: 'application'
|
|
|
|
dependencies {
|
|
compile project(':vtm-gdx')
|
|
compile project(':vtm-themes')
|
|
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'
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDirs = ['src']
|
|
}
|
|
}
|
|
|
|
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
|
|
if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) {
|
|
afterEvaluate {
|
|
project.apply from: "${rootProject.projectDir}/deploy.gradle"
|
|
}
|
|
}
|