-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (56 loc) · 1.62 KB
/
build.gradle
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id 'java-library'
id "org.openjfx.javafxplugin" version "0.0.12" apply false
}
if (System.getProperty('os.name').toLowerCase().contains("mac")) {
new ByteArrayOutputStream().withStream { os ->
exec {
args '-version', '-sdk', 'iphoneos', 'SDKVersion'
executable 'xcodebuild'
standardOutput = os
}
ext.IOS_VERSION = os.toString().trim()
println "IOS version: $IOS_VERSION"
}
} else {
ext.IOS_VERSION = ""
}
ext.libraryVersions = [attach: '4.0.13']
subprojects {
apply plugin: "org.openjfx.javafxplugin"
apply from: rootProject.file('gradle/mavenPublish.gradle')
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
maven {
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
javafx {
version = '17.0.2'
modules 'javafx.graphics'
}
}
task copyModuleSources {
doFirst {
subprojects.each {p ->
copy {
from p.sourceSets.main.java
into "${buildDir}/modules/sources/${p.ext.moduleName}"
}
}
}
}
javadoc {
doFirst {
subprojects.each {p -> classpath += p.sourceSets.main.compileClasspath }
options.addStringOption('-module-path', classpath.asPath)
}
exclude("com/gluonhq/attach/*/impl")
source fileTree("${buildDir}/modules/sources")
options.addStringOption("-module-source-path", "$buildDir/modules/sources")
classpath = files()
title "Custom Attach ${project.version} API"
dependsOn copyModuleSources
}