Skip to content

Commit 27fd4c9

Browse files
committed
create javadoc and sources jar file
1 parent 62c5a87 commit 27fd4c9

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

build.gradle

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
plugins {
2-
id "com.moowork.node" version "1.2.0"
3-
id 'com.github.kt3k.coveralls' version '2.8.2' // Coverage
4-
}
5-
61
apply plugin: 'java'
72

83
group 'de.inetsoftware.jwebassembly'
@@ -26,3 +21,23 @@ sourceSets {
2621
}
2722
}
2823
}
24+
25+
task sourcesJar(type: Jar, dependsOn: classes) {
26+
classifier = 'sources'
27+
from sourceSets.main.allSource
28+
}
29+
30+
task javadocJar(type: Jar, dependsOn: javadoc) {
31+
classifier = 'javadoc'
32+
from javadoc.destinationDir
33+
}
34+
35+
build {
36+
dependsOn sourcesJar
37+
dependsOn javadocJar
38+
}
39+
40+
artifacts {
41+
archives sourcesJar
42+
archives javadocJar
43+
}

0 commit comments

Comments
 (0)