Skip to content

Commit

Permalink
fix issue with force merged multi-release jars
Browse files Browse the repository at this point in the history
  • Loading branch information
siordache committed Dec 14, 2018
1 parent 9d70197 commit 0615ae1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class CreateMergedModuleTaskImpl extends BaseTaskImpl<CreateMergedModuleTaskData
def pkgName = Util.getPackage(entry.name)
if(pkgName) packages << pkgName
}
def moduleName = Util.getModuleName(jarFile, project)
def moduleName = Util.getFallbackModuleName(jarFile)
def modinfoDir = new File(targetDir, moduleName)
modinfoDir.mkdirs()
def modInfoJava = new File(modinfoDir, 'module-info.java')
Expand Down
1 change: 0 additions & 1 deletion src/main/groovy/org/beryx/jlink/impl/JlinkTaskImpl.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class JlinkTaskImpl extends BaseTaskImpl<JlinkTaskData> {
"$jdkHome/jmods/$SEP${project.files(td.jlinkJarsDir).asPath}$SEP${project.jar.archivePath}",
'--add-modules', td.moduleName,
'--output', imageDir]
// '--launcher', "$td.launcherData.name=$td.moduleName/$td.mainClass"]
}
if(result.exitValue != 0) {
project.logger.error(project.ext.jlinkOutput())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class PrepareMergedJarsDirTaskImpl extends BaseTaskImpl<PrepareMergedJarsDirTask
project.copy {
from versionedDir
into td.tmpJarsDirPath
exclude 'module-info.class'
}
}

Expand Down

0 comments on commit 0615ae1

Please sign in to comment.