gradle/chapi-module.gradle
apply plugin: "java"
//apply plugin: "maven-publish"
//apply plugin: "com.jfrog.bintray"
//apply from: "$rootDir/gradle/publications.gradle"
//buildscript {
// repositories {
// jcenter()
// }
//}
task sourcesJar(type: Jar, dependsOn: classes) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveClassifier.set("sources")
from sourceSets.main.allSource
// Don't include or exclude anything explicitly by default. See SPR-12085.
}
task javadocJar(type: Jar) {
archiveClassifier.set("javadoc")
from javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}