37 lines
896 B
Groovy
37 lines
896 B
Groovy
apply plugin: 'java-library'
|
|
apply plugin: 'maven'
|
|
|
|
dependencies {
|
|
api project(':vtm-gdx')
|
|
file('natives').eachDir() { dir ->
|
|
api files(dir.path)
|
|
}
|
|
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
|
|
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"
|
|
implementation 'com.metsci.ext.com.kitfox.svg:svg-salamander:0.1.19'
|
|
implementation "org.slf4j:slf4j-api:$slf4jVersion"
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|