Native libraries publishing artifacts, closes #43

This commit is contained in:
Emux
2016-07-04 12:41:56 +03:00
parent b3217ae2c0
commit c389abc7a2
32 changed files with 50 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ dependencies {
}
task copyLibs(type: Copy) {
from(zipTree("vtm-natives-ios.jar"))
from("natives")
into("${buildDir}/natives")
}
@@ -65,6 +65,15 @@ tasks.withType(org.gradle.api.tasks.compile.JavaCompile) {
compileTask -> compileTask.dependsOn copyVtmThemesResources
}
task nativesJar(type: Jar) {
classifier = 'natives'
from('natives')
}
artifacts {
archives nativesJar
}
// Automated Gradle project deployment to Sonatype OSSRH
if (isReleaseVersion && project.hasProperty("SONATYPE_USERNAME")) {
afterEvaluate {