We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6241025 + 4ffd1aa commit f553dabCopy full SHA for f553dab
1 file changed
app/build.gradle.kts
@@ -1,4 +1,5 @@
1
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
+import org.gradle.jvm.tasks.Jar
3
4
/*
5
* This file was generated by the Gradle 'init' task.
@@ -43,6 +44,15 @@ dependencies {
43
44
implementation(kotlin("script-util"))
45
}
46
47
+tasks.jar {
48
+ manifest.attributes["Main-Class"] = "frc238.App"
49
+ val dependencies = configurations
50
+ .runtimeClasspath
51
+ .get()
52
+ .map(::zipTree) // OR .map { zipTree(it) }
53
+ from(dependencies)
54
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
55
+}
56
application {
57
// Define the main class for the application.
58
mainClass.set("frc238.App")
0 commit comments