@@ -27,8 +27,11 @@ allprojects {
27
27
apply plugin : ' java'
28
28
}
29
29
30
- group = ' org.rabbit-converter.Rabbit'
31
- version = ' 0.0.1'
30
+
31
+ def siteUrl = ' https://github.com/Rabbit-Converter/Rabbit-Java'
32
+ def gitUrl = ' https://github.com/Rabbit-Converter/Rabbit-Java.git'
33
+ group = ' org.rabbit-converter.rabbit'
34
+ version = ' 0.0.2'
32
35
33
36
// In this section you declare the dependencies for your production and test code
34
37
dependencies {
@@ -56,16 +59,16 @@ jar {
56
59
}
57
60
58
61
artifacts {
59
- archives sourcesJar
60
62
archives javadocJar
63
+ archives sourcesJar
61
64
}
62
65
63
66
publishing {
64
67
publications {
65
68
MyPublication (MavenPublication ) {
66
69
from components. java
67
- groupId ' org.rabbit-converter'
68
- artifactId ' Rabbit '
70
+ groupId ' org.rabbit-converter.rabbit '
71
+ artifactId ' rabbit '
69
72
version project. version
70
73
}
71
74
}
@@ -82,9 +85,9 @@ bintray {
82
85
repo = ' maven'
83
86
name = ' rabbit'
84
87
desc = ' Rabbit in Java'
85
- websiteUrl = ' https://github.com/Rabbit-Converter/Rabbit-Java '
88
+ websiteUrl = siteUrl
86
89
issueTrackerUrl = ' https://github.com/Rabbit-Converter/Rabbit/issues'
87
- vcsUrl = ' https://github.com/Rabbit-Converter/Rabbit-Java.git '
90
+ vcsUrl = gitUrl
88
91
licenses = [' MIT' ]
89
92
labels = [' java' , ' myanmar' , ' font-converter' , ' zawgyi' , ' unicode' ]
90
93
publicDownloadNumbers = true
@@ -93,6 +96,11 @@ bintray {
93
96
name = project. version
94
97
desc = ' optional, version-specific description'
95
98
released = new Date ()
99
+ gpg {
100
+ sign = true // Determines whether to GPG sign the files. The default is false
101
+ passphrase = System . getenv(' BINTRAY_GPG_PASSWORD' )
102
+ // Optional. The passphrase for GPG signing'
103
+ }
96
104
mavenCentralSync {
97
105
sync = false
98
106
// Optional (true by default). Determines whether to sync the version to Maven Central.
@@ -105,6 +113,42 @@ bintray {
105
113
}
106
114
}
107
115
116
+ install {
117
+ repositories. mavenInstaller {
118
+ // This generates POM.xml with proper parameters
119
+ pom {
120
+ project {
121
+ packaging ' jar'
122
+
123
+ // Add your description here
124
+ name ' rabbit'
125
+ description = ' Rabbit in Java'
126
+ url siteUrl
127
+
128
+ // Set your license
129
+ licenses {
130
+ license {
131
+ name ' MIT'
132
+ url ' http://opensource.org/licenses/MIT'
133
+ }
134
+ }
135
+ developers {
136
+ developer {
137
+ id ' yelinaung'
138
+ name ' Ye Lin Aung'
139
+ email ' me@yelinaung.com'
140
+ }
141
+ }
142
+ scm {
143
+ connection gitUrl
144
+ developerConnection gitUrl
145
+ url siteUrl
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+
108
152
task wrapper (type : Wrapper ) {
109
153
gradleVersion = ' 2.4'
110
154
}
0 commit comments