improve build scripts; depends on jwebassembly-api; create JavaDoc and

Sources
This commit is contained in:
Volker 2018-06-10 21:04:03 +02:00
parent e6093fa495
commit 5534a414e3
2 changed files with 28 additions and 0 deletions

View File

@ -5,6 +5,8 @@ plugins {
apply plugin: 'java'
group 'de.inetsoftware'
archivesBaseName = 'jwebassembly-compiler'
version = '0.1'
repositories {
@ -12,6 +14,7 @@ repositories {
}
dependencies {
compile 'de.inetsoftware:jwebassembly-api:+'
compile 'com.google.code.findbugs:jsr305:3.0.1'
testCompile 'junit:junit:+'
}
@ -35,6 +38,26 @@ sourceSets {
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.java
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
build {
dependsOn sourcesJar
dependsOn javadocJar
}
artifacts {
archives sourcesJar
archives javadocJar
}
node {
version = '8.10.0'
// version = '+'

5
settings.gradle Normal file
View File

@ -0,0 +1,5 @@
rootProject.name='JWebAssembly'
if( file( '../JWebAssembly-API' ).isDirectory() ) {
includeBuild '../JWebAssembly-API'
}