Skip to content

Commit

Permalink
improve build scripts; depends on jwebassembly-api; create JavaDoc and
Browse files Browse the repository at this point in the history
Sources
  • Loading branch information
Volker authored and Volker committed Jun 10, 2018
1 parent e6093fa commit 5534a41
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ plugins {

apply plugin: 'java'

group 'de.inetsoftware'
archivesBaseName = 'jwebassembly-compiler'
version = '0.1'

repositories {
jcenter()
}

dependencies {
compile 'de.inetsoftware:jwebassembly-api:+'
compile 'com.google.code.findbugs:jsr305:3.0.1'
testCompile 'junit:junit:+'
}
Expand All @@ -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 = '+'
Expand Down
5 changes: 5 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rootProject.name='JWebAssembly'

if( file( '../JWebAssembly-API' ).isDirectory() ) {
includeBuild '../JWebAssembly-API'
}

0 comments on commit 5534a41

Please sign in to comment.