parent
234bd625e9
commit
b3217ae2c0
@ -1,4 +1,5 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
apply plugin: 'com.github.dcendents.android-maven'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':vtm-gdx')
|
compile project(':vtm-gdx')
|
||||||
@ -41,6 +42,18 @@ android {
|
|||||||
lintOptions { abortOnError false }
|
lintOptions { abortOnError false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android.applicationVariants.all { variant ->
|
||||||
|
def name = variant.buildType.name
|
||||||
|
if (name.equals("debug")) {
|
||||||
|
print "Skipping debug jar"
|
||||||
|
return; // Skip debug builds.
|
||||||
|
}
|
||||||
|
def task = project.tasks.create "jar${name.capitalize()}", Jar
|
||||||
|
task.dependsOn variant.javaCompile
|
||||||
|
task.from variant.javaCompile.destinationDir
|
||||||
|
artifacts.add('archives', task);
|
||||||
|
}
|
||||||
|
|
||||||
task run(dependsOn: 'installDebug') {
|
task run(dependsOn: 'installDebug') {
|
||||||
doFirst {
|
doFirst {
|
||||||
println(">> adb run...")
|
println(">> adb run...")
|
||||||
@ -52,3 +65,10 @@ task run(dependsOn: 'installDebug') {
|
|||||||
proc.waitFor()
|
proc.waitFor()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Automated Gradle project deployment to Sonatype OSSRH
|
||||||
|
if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) {
|
||||||
|
afterEvaluate {
|
||||||
|
project.apply from: "${rootProject.projectDir}/deploy.gradle"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user