@@ -175,9 +175,7 @@ artifacts {
175175 builtBy buildArtifacts
176176 }
177177
178- if (osdetector. os != " osx" ) {
179- archives sourcesJar, javadocJar
180- }
178+ archives sourcesJar, javadocJar
181179}
182180
183181publishing {
@@ -188,11 +186,41 @@ publishing {
188186 classifier osdetector. os + " -" + osdetector. arch
189187 builtBy buildArtifacts
190188 }
189+ }
191190
192- if (osdetector. os != " osx" ) {
193- artifact sourcesJar
194- artifact javadocJar
195- }
191+ maven2(MavenPublication ) {
192+ from components. java
193+
194+ groupId = " io.netifi.proteus"
195+ artifactId " ${ artifactName} "
196+
197+ artifact sourcesJar
198+ artifact javadocJar
199+ }
200+ }
201+ }
202+
203+ bintray {
204+ user = project. hasProperty(' bintrayUser' ) ? project. property(' bintrayUser' ) : System . getenv(' BINTRAY_USER' )
205+ key = project. hasProperty(' bintrayKey' ) ? project. property(' bintrayKey' ) : System . getenv(' BINTRAY_KEY' )
206+ publications = [' maven' , ' maven2' ]
207+
208+ publish = (osdetector. os == ' osx' )
209+
210+ pkg {
211+ repo = ' netifi-oss'
212+ name = " ${ artifactName} "
213+ userOrg = ' netifi'
214+ desc = " ${ project.description} "
215+ websiteUrl = ' https://github.com/netifi-proteus/proteus-java'
216+ issueTrackerUrl = ' https://github.com/netifi-proteus/proteus-java/issues'
217+ vcsUrl = ' https://github.com/netifi-proteus/proteus-java.git'
218+ licenses = [' Apache-2.0' ]
219+ githubRepo = ' netifi-proteus/proteus-java'
220+ githubReleaseNotesFile = ' CHANGELOG.md'
221+
222+ version {
223+ name = " ${ releaseVersion} "
196224 }
197225 }
198226}
0 commit comments