2019-07-24 15:03:12 +03:00
|
|
|
package scientifik
|
|
|
|
|
|
|
|
import org.gradle.api.artifacts.dsl.RepositoryHandler
|
|
|
|
import org.gradle.kotlin.dsl.maven
|
|
|
|
import org.jetbrains.kotlin.gradle.plugin.LanguageSettingsBuilder
|
|
|
|
|
|
|
|
internal fun LanguageSettingsBuilder.applySettings(): Unit {
|
|
|
|
progressiveMode = true
|
|
|
|
enableLanguageFeature("InlineClasses")
|
2019-09-12 09:42:08 +03:00
|
|
|
useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
|
|
|
|
useExperimentalAnnotation("kotlin.ExperimentalStdlibApi")
|
|
|
|
useExperimentalAnnotation("kotlin.time.ExperimentalTime")
|
2019-07-24 15:03:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
internal fun RepositoryHandler.applyRepos(): Unit{
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
|
|
|
maven("https://kotlin.bintray.com/kotlinx")
|
|
|
|
maven("https://dl.bintray.com/mipt-npm/scientifik")
|
|
|
|
maven("https://dl.bintray.com/mipt-npm/dev")
|
|
|
|
}
|