1- apply plugin : ' java'
1+ plugins {
2+ id " com.jfrog.bintray" version " 1.8.0"
3+ }
4+
5+ apply plugin : ' java-library'
6+ apply plugin : ' maven-publish'
27
3- group ' de.inetsoftware.jwebassembly '
8+ group ' de.inetsoftware'
49version = ' 0.1'
510
611repositories {
712 jcenter()
813}
914
1015dependencies {
11- compile ' com.google.code.findbugs:jsr305:3.0.1'
16+ compileOnly ' com.google.code.findbugs:jsr305:3.0.1'
1217}
1318
1419sourceSets {
@@ -24,7 +29,7 @@ sourceSets {
2429
2530task sourcesJar (type : Jar , dependsOn : classes) {
2631 classifier = ' sources'
27- from sourceSets. main. allSource
32+ from sourceSets. main. java
2833}
2934
3035task javadocJar (type : Jar , dependsOn : javadoc) {
@@ -41,3 +46,51 @@ artifacts {
4146 archives sourcesJar
4247 archives javadocJar
4348}
49+
50+ bintray {
51+ user = System . getenv(' BINTRAY_USER' )
52+ key = System . getenv(' BINTRAY_KEY' )
53+ publications = [' JWebAssemblyPublication' ]
54+ publish = true
55+ override = true
56+ pkg {
57+ repo = ' OSS'
58+ userOrg = ' i-net-software'
59+ licenses = [' Apache-2.0' ]
60+ vcsUrl = ' https://github.com/i-net-software'
61+ name = group + ' .' + rootProject. name
62+ version {
63+ released = new Date ()
64+ }
65+ }
66+ }
67+
68+ publishing {
69+ publications {
70+ JWebAssemblyPublication (MavenPublication ) {
71+ from components. java
72+ artifact sourcesJar
73+ artifact javadocJar
74+ pom. withXml {
75+ def root = asNode()
76+ root. appendNode(' name' , ' JWebAssembly-API' )
77+ root. appendNode(' description' , ' The API for using WebAssembly features in your Java classes.' )
78+ root. appendNode(' url' , ' https://github.com/i-net-software/JWebAssembly-API' )
79+
80+ def node = root. appendNode(' developers' ). appendNode( ' developer' )
81+ node. appendNode( ' id' , ' Horcrux7' )
82+ node. appendNode( ' name' , ' Volker Berlin' )
83+ node
. appendNode(
' email' ,
' [email protected] ' )
84+ node. appendNode( ' organization' , ' i-net software' )
85+ node. appendNode( ' organizationUrl' , ' https://www.inetsoftware.de' )
86+
87+ node = root. appendNode(' scm' )
88+ node
. appendNode(
' connection' ,
' scm:git:[email protected] :i-net-software/JWebAssembly-API.git' )
89+ node
. appendNode(
' developerConnection' ,
' scm:git:[email protected] :i-net-software/JWebAssembly-API.git' )
90+ node. appendNode( ' url' , ' https://github.com/i-net-software/JWebAssembly-API' )
91+
92+ root. children(). last()
93+ }
94+ }
95+ }
96+ }
0 commit comments