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'
2
7
3
- group ' de.inetsoftware.jwebassembly '
8
+ group ' de.inetsoftware'
4
9
version = ' 0.1'
5
10
6
11
repositories {
7
12
jcenter()
8
13
}
9
14
10
15
dependencies {
11
- compile ' com.google.code.findbugs:jsr305:3.0.1'
16
+ compileOnly ' com.google.code.findbugs:jsr305:3.0.1'
12
17
}
13
18
14
19
sourceSets {
@@ -24,7 +29,7 @@ sourceSets {
24
29
25
30
task sourcesJar (type : Jar , dependsOn : classes) {
26
31
classifier = ' sources'
27
- from sourceSets. main. allSource
32
+ from sourceSets. main. java
28
33
}
29
34
30
35
task javadocJar (type : Jar , dependsOn : javadoc) {
@@ -41,3 +46,51 @@ artifacts {
41
46
archives sourcesJar
42
47
archives javadocJar
43
48
}
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' , ' vberlin@inetsoftware.de' )
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:git@github.com:i-net-software/JWebAssembly-API.git' )
89
+ node. appendNode( ' developerConnection' , ' scm:git:git@github.com: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