Skip to content

Commit 08d2d57

Browse files
committed
Enable doc on gradle build
Signed-off-by: Victor <victor.cruz.isc@gmail.com>
1 parent 9886300 commit 08d2d57

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,33 @@ dependencies {
2525
compile group: 'io.netty', name: 'netty-all', version:'4.1.8.Final'
2626
testCompile group: 'junit', name: 'junit', version:'4.12'
2727
}
28+
29+
task sourcesJar(type: Jar, dependsOn: classes) {
30+
classifier = 'sources'
31+
from sourceSets.main.allSource
32+
}
33+
34+
task javadocJar(type: Jar, dependsOn: javadoc) {
35+
classifier = 'javadoc'
36+
from javadoc.destinationDir
37+
}
38+
39+
artifacts {
40+
archives sourcesJar
41+
archives javadocJar
42+
}
43+
44+
// To specify a license in the pom:
45+
install {
46+
repositories.mavenInstaller {
47+
pom.project {
48+
licenses {
49+
license {
50+
name 'The MIT License (MIT)'
51+
url 'https://github.com/bitsoex/bitso-java/blob/master/LICENSE'
52+
distribution 'repo'
53+
}
54+
}
55+
}
56+
}
57+
}

0 commit comments

Comments
 (0)