All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.metaeffekt.artifact.analysis.scripting.config.javabased.JavaBasedScript.kt Maven / Gradle / Ivy

There is a newer version: 0.132.0
Show newest version
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