Skip to content

Commit

Permalink
Added sources jar as an artifact to AILibs build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwever committed Feb 21, 2019
1 parent b9349e5 commit ab0e0e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,18 @@ allprojects {
}
}
}

// This task creates a jar with test classes.
task testClassesJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

// Add a new configuration named testArtifacts
configurations {
testArtifacts
Expand All @@ -148,6 +155,8 @@ allprojects {
// testCompile project(path: ':JAICore:jaicore-basic', configuration: 'testArtifacts')
artifacts {
testArtifacts testClassesJar
archives sourcesJar
archives javadocJar
}

// generate JavaDoc for each project
Expand All @@ -157,6 +166,7 @@ allprojects {
destinationDir = file("docs/javadoc")
// failOnError = true
}


}

Expand Down

0 comments on commit ab0e0e5

Please sign in to comment.