vtm/vtm-desktop/build.gradle
2021-03-27 19:47:24 +02:00

31 lines
582 B
Groovy

apply plugin: 'java-library'
apply plugin: 'maven'
dependencies {
api project(':vtm-gdx')
api 'com.formdev:svgSalamander:1.1.2.4'
}
sourceSets {
main {
java.srcDirs = ['src']
}
}
file('natives').eachDir() { dir ->
task("nativesJar-${dir.name}", type: Jar) {
classifier = "natives-${dir.name}"
from(dir.path)
}
artifacts {
archives tasks["nativesJar-${dir.name}"]
}
}
if (project.hasProperty("SONATYPE_USERNAME")) {
afterEvaluate {
project.apply from: "${rootProject.projectDir}/deploy.gradle"
}
}