com.metaeffekt.artifact.analysis.scripting.config.javabased.JavaBasedScript.kt Maven / Gradle / Ivy
package com.metaeffekt.artifact.analysis.scripting.config.javabased
import kotlin.script.experimental.annotations.KotlinScript
import kotlin.script.experimental.api.*
import kotlin.script.experimental.jvm.dependenciesFromCurrentContext
import kotlin.script.experimental.jvm.jvm
@KotlinScript(fileExtension = "java.kts", compilationConfiguration = JavaBaseConfiguration::class)
abstract class JavaBasedScript
object JavaBaseConfiguration : ScriptCompilationConfiguration({
implicitReceivers(AnotherReceiver::class)
ide {
acceptedLocations(ScriptAcceptedLocation.Everywhere)
}
defaultImports(
"java.io.File"
)
jvm {
dependenciesFromCurrentContext(
wholeClasspath = true
)
}
})
© 2015 - 2025 Weber Informatics LLC | Privacy Policy