Build compiler with -Xjvm-default=all + @JvmDefaultCompatibility when needed
This commit is contained in:
committed by
Alexander Udalov
parent
61d339e8f2
commit
c168a19a58
@@ -25,5 +25,5 @@ publish()
|
||||
standardPublicJars()
|
||||
|
||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
|
||||
kotlinOptions.freeCompilerArgs += "-Xjvm-default=compatibility"
|
||||
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
|
||||
}
|
||||
+1
-2
@@ -23,6 +23,7 @@ import kotlin.script.experimental.host.ScriptingHostConfiguration
|
||||
* may also remove or add new definitions at this point.
|
||||
* Processed definitions are provided to the scripting support infrastructure.
|
||||
*/
|
||||
@JvmDefaultWithCompatibility
|
||||
interface ScriptDefinitionsProvider {
|
||||
/**
|
||||
* A display name used to identify particular providers
|
||||
@@ -48,8 +49,6 @@ interface ScriptDefinitionsProvider {
|
||||
/**
|
||||
* The callback to update/add/remove script definitions after loading, if needed
|
||||
*/
|
||||
@Suppress("DEPRECATION") // To be replaced with -Xjvm-default=all-compatibility.
|
||||
@JvmDefault
|
||||
fun provideDefinitions(
|
||||
baseHostConfiguration: ScriptingHostConfiguration,
|
||||
loadedScriptDefinitions: List<ScriptDefinition>
|
||||
|
||||
Reference in New Issue
Block a user