apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'

dependencies {
    compile project(':vtm-gdx')
    compile project(':vtm-themes')
    compile files('vtm-natives-desktop.jar')
    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']
        output.resourcesDir = 'assets'
    }
}

run { ignoreExitValue = true }

// Automated Gradle project deployment to Sonatype OSSRH
if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) {
    afterEvaluate {
        project.apply from: "${rootProject.projectDir}/deploy.gradle"
    }
}