Commit 6e132421 authored by Axel Howind's avatar Axel Howind

build scripts

parent 02652045
Pipeline #52394848 failed with stages
in 16 minutes and 46 seconds
......@@ -28,9 +28,11 @@ subprojects {
apply plugin: 'com.dua3.gradle.jpms'
apply plugin: 'com.jfrog.bintray'
ext.versionSuffix = project.hasProperty('release') ? "" : "-SNAPSHOT"
/////////////////////////////////////////////////////////////////////////////
group = 'com.dua3.fx'
version = "${System.properties['com.dua3.fx.version']}"
version = rootProject.file('version').text.trim()+versionSuffix
ext.moduleName = project.group
ext.scm = 'https://gitlab.com/com.dua3/lib/fx.git'
......@@ -42,27 +44,54 @@ subprojects {
ext.developerEmail = 'axel@dua3.com'
////////////////////////////////////////////////////////////////////////////
sourceCompatibility = java_version
targetCompatibility = java_version
// repositories
repositories {
jcenter()
mavenLocal()
// no dependencies on local versions in release
if (!project.hasProperty('release')) {
mavenLocal()
}
}
dependencies {
api "com.dua3.utility:utility:${System.properties['com.dua3.utility.version']}"
// get OS (because JavaFX packages are OS dependent)
def currentOS = org.gradle.internal.os.OperatingSystem.current()
if (currentOS.isWindows()) {
ext.platform = 'win'
} else if (currentOS.isLinux()) {
ext.platform = 'linux'
} else if (currentOS.isMacOsX()) {
ext.platform = 'mac'
}
// dependencies
dependencies {
// com.dua3 libraries
implementation "com.dua3.utility:utility:${dua3_utility_version}${versionSuffix}"
// JavaFX
implementation "org.openjfx:javafx-base:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-fxml:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-graphics:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-controls:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-web:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-media:${System.properties['javafx.version']}:${System.properties['javafx.platform']}"
implementation "org.openjfx:javafx-base:${javafx_version}:${platform}"
implementation "org.openjfx:javafx-fxml:${javafx_version}:${platform}"
implementation "org.openjfx:javafx-graphics:${javafx_version}:${platform}"
implementation "org.openjfx:javafx-controls:${javafx_version}:${platform}"
implementation "org.openjfx:javafx-web:${javafx_version}:${platform}"
implementation "org.openjfx:javafx-media:${javafx_version}:${platform}"
// JUnit
def junitVersion = '5.3.1'
testImplementation "org.junit.jupiter:junit-jupiter-api:${System.properties['org.junit.version']}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${System.properties['org.junit.version']}"
}
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit_version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit_version}"
}
test {
useJUnitPlatform()
filter {
exclude '**/module-info.class'
}
}
test {
useJUnitPlatform()
......@@ -78,9 +107,6 @@ javadoc {
}
}
sourceCompatibility = 11
targetCompatibility = 11
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
......
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
org.gradle.caching=true
systemProp.javafx.platform=win
systemProp.javafx.version=12
java_version=11
javafx_version=11.0.2
junit_version=5.3.1
# current version numbers
systemProp.org.junit.version=5.3.1
systemProp.com.dua3.utility.version=4.0.0-BETA2
systemProp.com.dua3.meja.version=2.0-BETA4
dua3_utility_version=4.0.0-BETA3
dua3_meja_version=2.0-BETA5
0.3.5-BETA2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment