Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 11 #3

Closed
wants to merge 16 commits into from
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java
sudo: false
jdk:
- oraclejdk8
- openjdk11
before_install:
- chmod +x ./gradlew
script:
Expand All @@ -20,14 +20,14 @@ deploy:
script: ./gradlew bintrayUpload -Ddeployment=true
on:
tags: true
jdk: oraclejdk8
jdk: openjdk11
- provider: pages
skip_cleanup: true
github-token: $GITHUB_TOKEN
local-dir: projectpage
keep-history: false
on:
branch: master
jdk: oraclejdk8
jdk: openjdk11
after_success:
- bash <(curl -s https://codecov.io/bash)
31 changes: 28 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.JavaVersion

buildscript {
project.ext['CERN_VM'] = System.getProperty('CERN_TECHNET_VM') ?: System.getenv('CERN_TECHNET_VM') ?: project.hasProperty('CERN_TECHNET_VM') ?: false
project.ext['DEPLOYMENT'] = System.getProperty('deployment') ?: false
Expand Down Expand Up @@ -25,10 +27,16 @@ buildscript {
}
}


plugins {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure, but this could be removed since it is an alternative syntax of apply plugin that is done in the if jdk >= 11

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that in the apply plugin syntax, there is no way to specify a version ... I will check

id 'org.openjfx.javafxplugin' version '0.0.7' apply false
}

apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.openjfx.javafxplugin'

group = project['POM.groupId']

Expand All @@ -43,22 +51,25 @@ repositories {
maven { url "https://dl.bintray.com/minifx/minifx-repo" }
/* For the fontawesome icons, to be compatible with java 8 */
maven { url "https://dl.bintray.com/jerady/maven" }
mavenCentral()
jcenter()
//mavenCentral()
}
}

dependencies {
compile group: 'org.minifx', name: 'minifx-fxml', version: '0.0.2'
compile group: 'org.minifx', name: 'minifx-fxml', version: '2.0.0'

compile group: 'com.google.guava', name: 'guava', version: guavaVersion
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'

compile group: 'org.springframework', name: 'spring-core', version: springVersion
compile group: 'org.springframework', name: 'spring-context', version: springVersion

compile group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.7.0-5'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'

compile group: 'de.jensd', name: 'fontawesomefx-fontawesome', version: '4.7.0-11'
compile("javax.annotation:javax.annotation-api:1.3.2")

testCompile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.9.1'
Expand All @@ -83,6 +94,10 @@ test {
}
}

jacoco {
toolVersion = "0.8.5"
}

jacocoTestReport {
reports {
xml.enabled true
Expand Down Expand Up @@ -138,3 +153,13 @@ if (project['DEPLOYMENT']) {
apply plugin: 'com.jfrog.bintray'
apply from: 'https://raw.githubusercontent.com/ossgang/gradle-scripts/master/deployment/bintray-deploy.gradle'
}

javafx {
// version = "12.0.1"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing', 'javafx.web']
}

task printJavaVersion {
println 'Java Version: ' + JavaVersion.current();
}