File tree Expand file tree Collapse file tree 1 file changed +53
-1
lines changed Expand file tree Collapse file tree 1 file changed +53
-1
lines changed Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' java'
3
+ id ' com.jfrog.bintray' version ' 1.7.1'
3
4
id ' org.jetbrains.kotlin.jvm' version ' 1.3.21'
5
+ id " com.github.dcendents.android-maven" version " 2.1"
4
6
}
5
7
6
8
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'
8
13
9
14
sourceCompatibility = 1.8
10
15
@@ -26,6 +31,53 @@ compileTestKotlin {
26
31
kotlinOptions. jvmTarget = " 1.8"
27
32
}
28
33
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
+
29
81
processResources {
30
82
from ' src/main/kotlin/components/jni'
31
83
include ' *.dylib' , ' *.dll'
You can’t perform that action at this time.
0 commit comments