Skip to content

Commit

Permalink
fix beryx#244 secondary launcher fails in kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Feb 6, 2024
1 parent e1c7255 commit 87ba248
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class JlinkPluginExtension {
action.execute(launcherData.get())
}

void secondaryLauncher(Action<LauncherData> action) {
void secondaryLauncher(Action<SecondaryLauncherData> action) {
def ld = new SecondaryLauncherData(null)
ld.moduleName = moduleName.get()
Util.addToListProperty(secondaryLaunchers, ld)
Expand Down
29 changes: 0 additions & 29 deletions src/test/resources/multi-launch-kotlin-dsl/build.gradle

This file was deleted.

35 changes: 35 additions & 0 deletions src/test/resources/multi-launch-kotlin-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
plugins {
id("org.javamodularity.moduleplugin") version "1.8.12"
id("org.beryx.jlink")
}

repositories {
mavenCentral()
}

extra["moduleName"] = "org.example.multi"

application {
mainClass.set("org.example.multi.Hello")
}

jlink {
launcher {
name = "hello"
noConsole = false
jvmArgs = listOf(
"-Xms512m",
"-Xmx4g",
"-XX:+UseShenandoahGC"
)
}
secondaryLauncher {
name = "helloAgain"
mainClass = "org.example.multi.HelloAgain"
}
secondaryLauncher {
name = "howdy"
moduleName= "org.example.multi"
mainClass = "org.example.multi.Howdy"
}
}
1 change: 0 additions & 1 deletion src/test/resources/multi-launch-kotlin-dsl/settings.gradle

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "multi-launch-kotlin-dsl"

0 comments on commit 87ba248

Please sign in to comment.