11plugins {
22 id " com.moowork.node" version " 1.2.0"
33 id ' com.github.kt3k.coveralls' version ' 2.8.2' // Coverage
4+ id " com.jfrog.bintray" version " 1.8.4"
45}
56
6- apply plugin : ' java'
7+ apply plugin : ' java-library'
8+ apply plugin : ' maven-publish'
79
810group ' de.inetsoftware'
911archivesBaseName = ' jwebassembly-compiler'
@@ -14,8 +16,8 @@ repositories {
1416}
1517
1618dependencies {
17- compile ' de.inetsoftware:jwebassembly-api:+ '
18- compile ' com.google.code.findbugs:jsr305:3.0.1 '
19+ compileOnly ' com.google.code.findbugs:jsr305:3.0.1 '
20+ testCompile ' de.inetsoftware:jwebassembly-api:+ '
1921 testCompile ' junit:junit:+'
2022}
2123
@@ -97,3 +99,51 @@ jacocoTestReport {
9799}
98100check. dependsOn tasks. coveralls
99101
102+ bintray {
103+ user = System . getenv(' BINTRAY_USER' )
104+ key = System . getenv(' BINTRAY_KEY' )
105+ publications = [' JWebAssemblyPublication' ]
106+ publish = true
107+ override = true
108+ pkg {
109+ repo = ' OSS'
110+ userOrg = ' i-net-software'
111+ licenses = [' Apache-2.0' ]
112+ vcsUrl = ' https://github.com/i-net-software'
113+ name = group + ' .' + archivesBaseName
114+ version {
115+ released = new Date ()
116+ }
117+ }
118+ }
119+
120+ publishing {
121+ publications {
122+ JWebAssemblyPublication (MavenPublication ) {
123+ from components. java
124+ artifact sourcesJar
125+ artifact javadocJar
126+ artifactId archivesBaseName
127+ pom. withXml {
128+ def root = asNode()
129+ root. appendNode(' name' , ' JWebAssembly-Compiler' )
130+ root. appendNode(' description' , ' A Java to WebAssembly compiler.' )
131+ root. appendNode(' url' , ' https://github.com/i-net-software/JWebAssembly' )
132+
133+ def node = root. appendNode(' developers' ). appendNode( ' developer' )
134+ node. appendNode( ' id' , ' Horcrux7' )
135+ node. appendNode( ' name' , ' Volker Berlin' )
136+ node
. appendNode(
' email' ,
' [email protected] ' )
137+ node. appendNode( ' organization' , ' i-net software' )
138+ node. appendNode( ' organizationUrl' , ' https://www.inetsoftware.de' )
139+
140+ node = root. appendNode(' scm' )
141+ node
. appendNode(
' connection' ,
' scm:git:[email protected] :i-net-software/JWebAssembly.git' )
142+ node
. appendNode(
' developerConnection' ,
' scm:git:[email protected] :i-net-software/JWebAssembly.git' )
143+ node. appendNode( ' url' , ' https://github.com/i-net-software/JWebAssembly' )
144+
145+ root. children(). last()
146+ }
147+ }
148+ }
149+ }
0 commit comments