forked from MiguelGoulao/ganttproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (73 loc) · 2.69 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id "org.jetbrains.kotlin.jvm" version "1.7.20" apply false
}
ext.semver = '3.3'
ext.buildNum = '3290'
ext.distBinDir = file('ganttproject-builder/dist-bin')
ext.pluginsDir = file("ganttproject-builder/dist-bin/plugins/base")
version = "${semver}.${buildNum}"
// Config for all projects: deps come from Maven repository,
// compile using Java 11, libs normally sit in lib
allprojects {
configurations {
direct
providedCompile
}
repositories {
mavenCentral()
google()
}
apply plugin: 'java'
ext {
libDir = 'lib'
mvnDir = 'lib/mvn'
kotlin_version = "1.7.20"
javaExportOptions = [
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED',
'--add-exports', 'javafx.base/com.sun.javafx=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.skin=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.skin.resources=ALL-UNNAMED',
'--add-exports', 'javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED',
'--add-exports', 'javafx.graphics/com.sun.javafx.util=ALL-UNNAMED',
'--add-opens', 'java.desktop/sun.swing=ALL-UNNAMED',
'--add-opens', 'java.desktop/sun.awt.X11=ALL-UNNAMED'
]
}
sourceCompatibility = 11
targetCompatibility = 11
clean {
delete += "dist-bin"
}
}
subprojects {
group 'biz.ganttproject'
version = new Date().format("yy.MM.dd") + "-SNAPSHOT"
}
def addPublishing(project) {
project.publishing {
repositories {
maven {
name "ganttproject-maven-repository-internal"
url "gcs://ganttproject-maven-repository/internal"
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/bardsoftware/ganttproject")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
}
}
//
//runtime {
// distDir = rootProject.distBinDir
// options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
// modules = ['java.base']
//}