You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Apply a specific Java toolchain to ease working on different environments.
22
-
java {
23
-
toolchain {
24
-
languageVersion.set(JavaLanguageVersion.of(17))
25
-
}
26
-
}
27
-
tasks {
28
-
// java-library plugin wont find main class for us but we want to be able to make kotlin runtime available to plugins so we need it
29
-
jar {
30
-
manifest { attributes( "Main-Class" to "examplepluginloader.MainKt" ) }
31
-
}
32
-
// make it output to the shared output directory to make it easier to run it with the plugin (the example program uses the loader to load from ./ by default unless you specify)
33
-
shadowJar {
34
-
destinationDirectory.set(file("../ExampleOut/"))
35
-
archiveFileName.set("entryPoint.jar")
36
-
}
1
+
plugins {
2
+
kotlin("jvm")
3
+
id("com.github.johnrengelman.shadow") version "8.1.1"
4
+
// Apply the java-library plugin for API and implementation separation.
// Apply a specific Java toolchain to ease working on different environments.
22
+
java {
23
+
toolchain {
24
+
languageVersion.set(JavaLanguageVersion.of(17))
25
+
}
26
+
}
27
+
tasks {
28
+
// java-library plugin wont find main class for us but we want to be able to make kotlin runtime available to plugins so we need it
29
+
jar {
30
+
manifest { attributes( "Main-Class" to "examplepluginloader.MainKt" ) }
31
+
}
32
+
// make it output to the shared output directory to make it easier to run it with the plugin (the example program uses the loader to load from ./ by default unless you specify)
0 commit comments