Skip to content

Commit 49aa2d6

Browse files
committed
Fix JavaFX dependency by adding it as third party module.
JavaFX uses some individual libs for each OS, adding all increases the final zip but should make the executable run on all major platforms. Minimum Java version is now 11 because this is the minimum JavaFX module version.
1 parent 952b187 commit 49aa2d6

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Briss 2.0
22

33
Briss 2.0 is intended to be a GUI Update for the Briss PDF cropping tool.
4+
It is based on Briss 0.9 which is located at sourceforge: http://sourceforge.net/projects/briss/
45

5-
Briss 2.0 is based on Briss 0.9 which is located at sourceforge: http://sourceforge.net/projects/briss/
6+
### Installation
7+
8+
Currently Briss 2.0 is in alpha therefore some features are still missing (for example the page skip list).
9+
If you want to give it a try you can download the pre release from https://github.com/mbaeuerle/Briss-2.0/releases.
10+
You will need Java 11 or newer to run it.
611

712
### Things that are done by now
813
- Small refinements on gui which improve the workflow

build.gradle

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
apply plugin: 'java'
2-
apply plugin: 'application'
1+
2+
plugins {
3+
id 'org.openjfx.javafxplugin' version '0.0.8'
4+
id 'java'
5+
id 'application'
6+
}
37

48
mainClassName = 'at.laborg.briss.Briss'
59
applicationDefaultJvmArgs = ["-Xms128m", "-Xmx1024m"]
10+
def javaFxVersion = '11'
611

712
repositories {
813
maven { url "http://clojars.org/repo" } // For jpedal
@@ -13,4 +18,19 @@ repositories {
1318
dependencies {
1419
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.10'
1520
compile group: 'org.jpedal', name: 'jpedal-lgpl', version: '4.74b27'
21+
22+
runtimeOnly "org.openjfx:javafx-controls:$javaFxVersion:win"
23+
runtimeOnly "org.openjfx:javafx-controls:$javaFxVersion:linux"
24+
runtimeOnly "org.openjfx:javafx-controls:$javaFxVersion:mac"
25+
runtimeOnly "org.openjfx:javafx-base:$javaFxVersion:win"
26+
runtimeOnly "org.openjfx:javafx-base:$javaFxVersion:linux"
27+
runtimeOnly "org.openjfx:javafx-base:$javaFxVersion:mac"
28+
runtimeOnly "org.openjfx:javafx-swing:$javaFxVersion:win"
29+
runtimeOnly "org.openjfx:javafx-swing:$javaFxVersion:linux"
30+
runtimeOnly "org.openjfx:javafx-swing:$javaFxVersion:mac"
31+
}
32+
33+
javafx {
34+
version = javaFxVersion
35+
modules = [ 'javafx.controls', 'javafx.base', 'javafx.swing' ]
1636
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Thu Aug 02 16:02:28 CST 2018
1+
#Wed Apr 15 18:44:16 CEST 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip

0 commit comments

Comments
 (0)