1
1
plugins {
2
2
id " com.moowork.node" version " 1.2.0"
3
3
id ' com.github.kt3k.coveralls' version ' 2.8.2' // Coverage
4
+ id " com.jfrog.bintray" version " 1.8.4"
4
5
}
5
6
6
- apply plugin : ' java'
7
+ apply plugin : ' java-library'
8
+ apply plugin : ' maven-publish'
7
9
8
10
group ' de.inetsoftware'
9
11
archivesBaseName = ' jwebassembly-compiler'
@@ -14,8 +16,8 @@ repositories {
14
16
}
15
17
16
18
dependencies {
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:+ '
19
21
testCompile ' junit:junit:+'
20
22
}
21
23
@@ -97,3 +99,51 @@ jacocoTestReport {
97
99
}
98
100
check. dependsOn tasks. coveralls
99
101
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' , ' vberlin@inetsoftware.de' )
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:git@github.com:i-net-software/JWebAssembly.git' )
142
+ node. appendNode( ' developerConnection' , ' scm:git:git@github.com: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