Alexey Tsvetkov
3 years ago
committed by
Alexey Tsvetkov
18 changed files with 46 additions and 112 deletions
@ -1,14 +0,0 @@
|
||||
plugins { |
||||
id "org.jetbrains.kotlin.jvm" apply false |
||||
id "org.jetbrains.compose" apply false |
||||
} |
||||
|
||||
subprojects { |
||||
repositories { |
||||
google() |
||||
mavenCentral() |
||||
maven { |
||||
url "https://maven.pkg.jetbrains.space/public/p/compose/dev" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,34 @@
|
||||
def jvmTargetForKotlinCompile(Project project, String jvmTarget) { |
||||
project.tasks.all { |
||||
// tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) fails for init scripts |
||||
if (it.class.name == "org.jetbrains.kotlin.gradle.tasks.KotlinCompile_Decorated") { |
||||
kotlinOptions.jvmTarget = "11" |
||||
} |
||||
} |
||||
} |
||||
|
||||
allprojects { |
||||
repositories { |
||||
mavenLocal() |
||||
mavenCentral() |
||||
maven { |
||||
url 'https://maven.pkg.jetbrains.space/public/p/compose/dev' |
||||
} |
||||
google() |
||||
} |
||||
|
||||
plugins.withId("java-base") { |
||||
java { |
||||
sourceCompatibility = JavaVersion.VERSION_11 |
||||
targetCompatibility = JavaVersion.VERSION_11 |
||||
} |
||||
} |
||||
|
||||
plugins.withId("org.jetbrains.kotlin.jvm") { |
||||
jvmTargetForKotlinCompile(project, "11") |
||||
} |
||||
|
||||
plugins.withId("org.jetbrains.kotlin.multiplatform") { |
||||
jvmTargetForKotlinCompile(project, "11") |
||||
} |
||||
} |
Loading…
Reference in new issue