Код: Выделить всё
// build.gradle
apply plugin: "java-library"
apply plugin: "kotlin"
dependencies {
api Libs.engelsystem
implementation(Libs.retrofit) {
exclude group: "com.squareup.okio", module: "okio"
}
testImplementation Libs.junit
testImplementation Libs.kotlinCoroutinesTest
testImplementation Libs.mockitoKotlin
testImplementation Libs.okhttpMockWebServer
testImplementation Libs.retrofitConverterMoshi
testImplementation Libs.truth
}
sourceCompatibility = Config.compatibleJavaVersion
targetCompatibility = Config.compatibleJavaVersion
compileKotlin {
kotlinOptions {
jvmTarget = Config.compatibleJavaVersion // is set to JavaVersion.VERSION_11
freeCompilerArgs += [
"-opt-in=kotlin.RequiresOptIn"
]
}
}
Подробнее здесь: https://stackoverflow.com/questions/773 ... lin-module