forked from kiwicom/orbit-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
53 lines (48 loc) · 1.73 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
import com.vanniktech.maven.publish.MavenPublishPluginExtension
import com.vanniktech.maven.publish.SonatypeHost
import java.util.Properties
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31" apply false
kotlin("android") version "1.5.31" apply false
kotlin("plugin.serialization") version "1.5.31" apply false
id("com.android.application") version "7.0.3" apply false
id("org.jmailen.kotlinter") version "3.6.0" apply false
id("com.vanniktech.maven.publish") version "0.18.0" apply false
}
subprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://kotlin.bintray.com/kotlinx/") }
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = true
freeCompilerArgs = freeCompilerArgs.toMutableList().apply {
add("-Xopt-in=kotlin.RequiresOptIn")
add("-Xskip-prerelease-check")
}.toList()
}
}
val signingPropsFile = rootProject.file("release/signing.properties")
if (signingPropsFile.exists()) {
val localProperties = Properties()
with(signingPropsFile.inputStream()) {
localProperties.load(this)
}
localProperties.forEach { key, value ->
if (key == "signing.secretKeyRingFile") {
project.ext.set(key as String, rootProject.file(value).absolutePath)
} else {
project.ext.set(key as String, value)
}
}
}
plugins.withId("com.vanniktech.maven.publish") {
configure<MavenPublishPluginExtension> {
sonatypeHost = SonatypeHost.S01
}
}
}