Skip to content

Commit a41cb0d

Browse files
committed
publish config
1 parent 8824fee commit a41cb0d

File tree

1 file changed

+53
-1
lines changed

1 file changed

+53
-1
lines changed

build.gradle

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
plugins {
22
id 'java'
3+
id 'com.jfrog.bintray' version '1.7.1'
34
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
5+
id "com.github.dcendents.android-maven" version "2.1"
46
}
57

68
group 'com.stringcare'
7-
version '2.3-SNAPSHOT'
9+
version '2.2'
10+
11+
def siteUrl = 'https://github.com/StringCare/GradlePlugin'
12+
def gitUrl = 'https://github.com/StringCare/GradlePlugin.git'
813

914
sourceCompatibility = 1.8
1015

@@ -26,6 +31,53 @@ compileTestKotlin {
2631
kotlinOptions.jvmTarget = "1.8"
2732
}
2833

34+
install {
35+
repositories.mavenInstaller {
36+
pom {
37+
project {
38+
packaging 'aar'
39+
name 'StringCareAndroidPlugin'
40+
url siteUrl
41+
// Set your license
42+
licenses {
43+
license {
44+
name 'The Apache Software License, Version 2.0'
45+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
46+
}
47+
}
48+
developers {
49+
developer {
50+
id 'efraespada'
51+
name 'efraespada'
52+
email 'efraespada@gmail.com'
53+
}
54+
}
55+
scm {
56+
connection gitUrl
57+
developerConnection gitUrl
58+
url siteUrl
59+
}
60+
}
61+
}
62+
}
63+
}
64+
65+
Properties properties = new Properties()
66+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
67+
bintray {
68+
user = properties.getProperty("bintrayUser")
69+
key = properties.getProperty("bintrayApiKey")
70+
configurations = ['archives']
71+
pkg {
72+
repo = "maven"
73+
name = "StringCareAndroidPlugin"
74+
websiteUrl = siteUrl
75+
vcsUrl = gitUrl
76+
licenses = ["Apache-2.0"]
77+
publish = true
78+
}
79+
}
80+
2981
processResources {
3082
from 'src/main/kotlin/components/jni'
3183
include '*.dylib', '*.dll'

0 commit comments

Comments
 (0)