-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
40 lines (33 loc) · 997 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val pluginsDir by extra { file("$buildDir/plugins") }
buildscript {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
classpath(kotlin("gradle-plugin", version = "1.6.10"))
}
}
plugins {
kotlin("jvm") version "1.6.10"
id("org.jetbrains.dokka") version "1.6.10"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.languageVersion = "1.6"
kotlinOptions.apiVersion = "1.6"
kotlinOptions.jvmTarget = "16"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
apply(from = "${rootDir}/scripts/publish-root.gradle")