-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #244 secondary launcher fails in Kotlin DSL
- Loading branch information
1 parent
e6d9eaa
commit dbeba1f
Showing
8 changed files
with
78 additions
and
1 deletion.
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
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
35 changes: 35 additions & 0 deletions
35
src/test/resources/multi-launch-kotlin-dsl/build.gradle.kts
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,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" | ||
} | ||
} |
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 @@ | ||
rootProject.name = "multi-launch-kotlin-dsl" |
2 changes: 2 additions & 0 deletions
2
src/test/resources/multi-launch-kotlin-dsl/src/main/java/module-info.java
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,2 @@ | ||
module org.example.multi { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/multi-launch-kotlin-dsl/src/main/java/org/example/multi/Hello.java
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,7 @@ | ||
package org.example.multi; | ||
|
||
public class Hello { | ||
public static void main(String[] args) { | ||
System.out.println("Hello, world!"); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/multi-launch-kotlin-dsl/src/main/java/org/example/multi/HelloAgain.java
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,7 @@ | ||
package org.example.multi; | ||
|
||
public class HelloAgain { | ||
public static void main(String[] args) { | ||
System.out.println("Hello again!"); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/test/resources/multi-launch-kotlin-dsl/src/main/java/org/example/multi/Howdy.java
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,7 @@ | ||
package org.example.multi; | ||
|
||
public class Howdy { | ||
public static void main(String[] args) { | ||
System.out.println("Howdy!"); | ||
} | ||
} |