Nezteb
04/25/2019, 3:29 PMjar {
archiveName = "onboarding.jar"
manifest {
attributes(
"Class-Path" to ???
"Main-Class" to "com.mything.MainKt"
)
}
}
but configurations.compile.collect...
isn’t a thing in the Kotlin DSLeskatos
04/25/2019, 3:34 PM.collect {}
is .map {}
.eskatos
04/25/2019, 3:35 PMconfigurations.compile.get().map { it.name }.joinToString(" ")
can also be simplified to:
configurations.compile.get().joinToString(" ") { it.name }
Nezteb
04/25/2019, 3:39 PMeskatos
04/25/2019, 4:26 PMeskatos
04/25/2019, 4:26 PMcompile
configuration though.eskatos
04/25/2019, 4:26 PMruntimeClasspath
configuration sounds like a better fit for your use caseNezteb
04/25/2019, 4:29 PMeskatos
04/25/2019, 4:30 PMcompile
is a bucket where you declare compile time dependencies
runtimeClasspath
represent the resolveable runtime classpath
see https://docs.gradle.org/current/userguide/java_plugin.html#tab:configurations