Skip to content

Commit

Permalink
カスタムJREを作成するタスクを追加 #44
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed May 12, 2020
1 parent 8091233 commit d759aa7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ build
.project
.settings/org.eclipse.buildship.core.prefs
/lib/
/jmods/
/jre/
21 changes: 18 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ task versionSet(type: Copy) {

compileJava.dependsOn(['versionSet'])

def libDir = 'lib'
def libDir = './lib'

task clearDependencies {
delete libDir
Expand Down Expand Up @@ -166,7 +166,22 @@ def appMods = [

task runApp(type: Exec, dependsOn: dumpDependencies) {
commandLine 'java',
'--module-path', './' + libDir,
'--module-path', libDir,
'--add-modules', appMods.join(','),
'-jar', 'build/libs/tkfm-dev.jar'
}
}

def jmodsDir = './jmods/javafx-jmods-11.0.2'
def customJREDir = 'jre'

task clearCustomJRE {
delete customJREDir
}

task jlink(type: Exec, dependsOn: clearCustomJRE) {
commandLine 'jlink',
'--module-path', jmodsDir,
'--add-modules', appMods.join(','),
'--compress=2',
'--output', customJREDir
}

0 comments on commit d759aa7

Please sign in to comment.