|
|
@@ -1,4 +1,6 @@
|
|
|
apply plugin: 'com.android.library'
|
|
|
+apply plugin: 'com.jfrog.artifactory'
|
|
|
+apply plugin: 'maven-publish'
|
|
|
|
|
|
android {
|
|
|
compileSdkVersion 26
|
|
|
@@ -26,3 +28,38 @@ dependencies {
|
|
|
compile 'com.android.support:appcompat-v7:26.+'
|
|
|
testCompile 'junit:junit:4.12'
|
|
|
}
|
|
|
+
|
|
|
+def libraryGroupId = 'hr.tacitus.graphs'
|
|
|
+def libraryArtifactId = 'android-graphs'
|
|
|
+def libraryVersion = '0.0.2'
|
|
|
+
|
|
|
+publishing {
|
|
|
+ publications {
|
|
|
+ aar(MavenPublication) {
|
|
|
+ groupId libraryGroupId
|
|
|
+ version libraryVersion
|
|
|
+ artifactId libraryArtifactId
|
|
|
+
|
|
|
+ artifact("$buildDir/outputs/aar/app-release.aar")
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+artifactory {
|
|
|
+ contextUrl = 'http://knut-hetzner.ddns.net:8081/artifactory'
|
|
|
+ publish {
|
|
|
+ repository {
|
|
|
+ repoKey = 'libs-release-local'
|
|
|
+
|
|
|
+ username = artifactory_username
|
|
|
+ password = artifactory_password
|
|
|
+ }
|
|
|
+ defaults {
|
|
|
+ publications('aar')
|
|
|
+ publishArtifacts = true
|
|
|
+
|
|
|
+ properties = ['qa.level': 'basic', 'q.os': 'android', 'dev.team': 'core']
|
|
|
+ publishPom = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|