File: build.gradle

package info (click to toggle)
controlsfx 11.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,880 kB
  • sloc: java: 26,920; sh: 120; makefile: 3
file content (40 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
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"
        }
    }
}