1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
ext.moduleName = 'org.controlsfx.fxsampler'
version = fxsampler_version
configurations {
//samples.extendsFrom mainRuntime
jdk
}
sourceSets {
main {
compileClasspath += configurations.jdk
}
}
if (JavaVersion.current().isJava11Compatible()) {
dependencies {
rootProject.javafx_modules.each {
add("compile", "org.openjfx:$it:$javafx_version:$platform")
}
}
}
javadoc {
failOnError = false
options.windowTitle("FXSampler Project ${version}")
// All doc-files are located in src/main/docs because Gradle's javadoc doesn't copy
// over the doc-files if they are embedded with the sources. I find this arrangement
// somewhat cleaner anyway (never was a fan of mixing javadoc files with the sources)
doLast {
copy {
from "src/main/docs"
into "$buildDir/docs/javadoc"
}
}
}
|