added custom task that builds jar and javadoc
This commit is contained in:
parent
df3964a9fa
commit
b2823fc01a
21
build.gradle
21
build.gradle
@ -63,23 +63,8 @@ javadoc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.register('build-cs108', Jar) {
|
tasks.register('build-cs108') {
|
||||||
manifest {
|
dependsOn jar
|
||||||
attributes(
|
dependsOn javadoc
|
||||||
'Main-Class': mainClassName
|
|
||||||
)
|
|
||||||
}
|
|
||||||
from {
|
|
||||||
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
||||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
||||||
}
|
|
||||||
description 'Builds .jar & documentation. Or is supposed to do that, at least.'
|
|
||||||
dependsOn myJavadocs
|
|
||||||
doLast {
|
|
||||||
println('done')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task myJavadocs(type: Javadoc) {
|
|
||||||
source = sourceSets.main.allJava
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user