diff --git a/build.gradle b/build.gradle index 06104953c9d..d66d566aff1 100644 --- a/build.gradle +++ b/build.gradle @@ -581,6 +581,7 @@ jlink { installerOptions = [ '--vendor', 'JabRef', '--app-version', "${project.version}", + '--win-upgrade-uuid', 'd636b4ee-6f10-451e-bf57-c89656780e36', '--win-dir-chooser', '--win-shortcut' ] diff --git a/eclipse.gradle b/eclipse.gradle index c5121e5eb90..60e1a845380 100644 --- a/eclipse.gradle +++ b/eclipse.gradle @@ -24,9 +24,10 @@ eclipse { it.entryAttributes['test'] = 'true' } - def jreContainer = entries.find { isJREContainer(it) }; - jreContainer.entryAttributes['add-exports'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref'; - jreContainer.entryAttributes['add-opens'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref'; + def javafxcontrols = entries.find { isJavafxControls(it) }; + javafxcontrols.entryAttributes['add-exports'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref:javafx.controls/com.sun.javafx.scene.control.behavior=org.jabref:javafx.controls/javafx.scene.control=org.jabref'; + javafxcontrols.entryAttributes['add-opens'] = 'javafx.controls/com.sun.javafx.scene.control=org.jabref:javafx.controls/com.sun.javafx.scene.control.behavior=org.jabref:javafx.controls/javafx.scene.control=org.jabref'; + entries.findAll { isLibrary(it) && isTestScope(it) }.each { //mark test source files it.entryAttributes['test'] = 'true' @@ -51,9 +52,8 @@ boolean isSource(entry) { return entry.properties.kind.equals('src'); } boolean isControlsfx(entry) { return entry.properties.path.contains('controlsfx'); } -boolean isJREContainer(entry) { - return entry.properties.kind == 'con' && entry.properties.path.startsWith('org.eclipse.jdt.launching.JRE_CONTAINER') -}; +boolean isJavafxControls(entry) { return entry.properties.path.contains('javafx-controls'); } + // add formatter and cleanup settings to Eclipse settings // see http://stackoverflow.com/a/27461890/873282