-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forgotten edit method codes added . Runtime components missing error fixed, now application can be run either with gradle or from INTELIJ .
- Loading branch information
1 parent
75cb3c6
commit 5d09bc6
Showing
5 changed files
with
211 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,60 @@ | ||
plugins { | ||
id 'java' | ||
id 'application' | ||
id 'org.javamodularity.moduleplugin' version '1.8.12' | ||
id 'org.openjfx.javafxplugin' version '0.0.13' | ||
id 'org.beryx.jlink' version '2.25.0' | ||
} | ||
|
||
javafx { | ||
version = '20' | ||
modules = [ 'javafx.controls', 'javafx.fxml' ] | ||
} | ||
group 'com.ce216' | ||
version '1.0-SNAPSHOT' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
ext { | ||
junitVersion = '5.9.1' | ||
} | ||
|
||
sourceCompatibility = '17' | ||
targetCompatibility = '17' | ||
|
||
tasks.withType(JavaCompile) { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
application { | ||
mainModule = 'com.ce216.dictionary' | ||
mainClass = 'com.ce216.dictionary.App' | ||
} | ||
|
||
javafx { | ||
version = '19' | ||
modules = ['javafx.controls', 'javafx.fxml'] | ||
} | ||
|
||
dependencies { | ||
implementation('org.kordamp.bootstrapfx:bootstrapfx-core:0.4.0') | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}") | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
jlink { | ||
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip") | ||
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages'] | ||
launcher { | ||
name = 'app' | ||
} | ||
} | ||
|
||
jlinkZip { | ||
group = 'distribution' | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module com.ce216.dictionary { | ||
requires javafx.controls; | ||
requires javafx.fxml; | ||
requires java.base; | ||
|
||
|
||
|
||
|
||
opens com.ce216.dictionary to javafx.fxml; | ||
exports com.ce216.dictionary; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters