-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
build.gradle.kts
80 lines (74 loc) · 2.71 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import com.arkivanov.gradle.AndroidConfig
import com.arkivanov.gradle.BinaryCompatibilityValidatorConfig
import com.arkivanov.gradle.PublicationConfig
import com.arkivanov.gradle.ensureUnreachableTasksDisabled
import com.arkivanov.gradle.iosCompat
import com.arkivanov.gradle.macosCompat
import com.arkivanov.gradle.setupDefaults
import com.arkivanov.gradle.tvosCompat
import com.arkivanov.gradle.watchosCompat
buildscript {
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
classpath(deps.kotlin.kotlinGradlePlug)
classpath(deps.android.gradle)
classpath(deps.jetbrains.compose.composeGradlePlug)
classpath(deps.jetbrains.kotlin.composeCompilerGradlePlug)
classpath(deps.jetbrains.kotlinx.binaryCompatibilityValidator)
classpath(deps.jetbrains.kotlin.serializationGradlePlug)
}
}
plugins {
id("com.arkivanov.gradle.setup")
}
setupDefaults(
multiplatformConfigurator = {
androidTarget()
jvm()
js { browser() }
wasmJs { browser() }
iosCompat()
watchosCompat()
tvosCompat()
macosCompat()
},
androidConfig = AndroidConfig(
minSdkVersion = 21,
compileSdkVersion = 34,
targetSdkVersion = 34,
),
binaryCompatibilityValidatorConfig = BinaryCompatibilityValidatorConfig(
nonPublicMarkers = listOf("com.arkivanov.decompose.InternalDecomposeApi"),
klib = true,
),
publicationConfig = PublicationConfig(
group = "com.arkivanov.decompose",
version = deps.versions.decompose.get(),
projectName = "Decompose",
projectDescription = "Kotlin Multiplatform lifecycle-aware business logic components",
projectUrl = "https://github.com/arkivanov/Decompose",
scmUrl = "scm:git:git://github.com/arkivanov/Decompose.git",
licenseName = "The Apache License, Version 2.0",
licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt",
developerId = "arkivanov",
developerName = "Arkadii Ivanov",
developerEmail = "arkann1985@gmail.com",
signingKey = System.getenv("SIGNING_KEY"),
signingPassword = System.getenv("SIGNING_PASSWORD"),
repositoryUrl = "https://oss.sonatype.org/service/local/staging/deployByRepositoryId/${System.getenv("SONATYPE_REPOSITORY_ID")}",
repositoryUserName = System.getenv("SONATYPE_USER_NAME"),
repositoryPassword = System.getenv("SONATYPE_PASSWORD"),
),
)
ensureUnreachableTasksDisabled()
allprojects {
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}