-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle.kts
83 lines (77 loc) · 2.77 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
81
82
83
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.setupDetekt
import com.arkivanov.gradle.tvosCompat
import com.arkivanov.gradle.watchosCompat
buildscript {
repositories {
gradlePluginPortal()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
dependencies {
classpath(deps.kotlin.kotlinGradlePlug)
classpath(deps.android.gradle)
classpath(deps.intellij.gradleIntellijPlug)
classpath(deps.compose.composeGradlePlug)
classpath(deps.kotlin.composeCompilerGradlePlug)
classpath(deps.kotlinx.binaryCompatibilityValidator)
classpath(deps.detekt.gradleDetektPlug)
}
}
plugins {
id("com.arkivanov.gradle.setup")
}
setupDefaults(
multiplatformConfigurator = {
androidTarget()
jvm()
js { browser() }
wasmJs { browser() }
linuxX64()
iosCompat()
watchosCompat()
tvosCompat()
macosCompat()
},
androidConfig = AndroidConfig(
minSdkVersion = 15,
compileSdkVersion = 34,
targetSdkVersion = 34,
),
binaryCompatibilityValidatorConfig = BinaryCompatibilityValidatorConfig(
nonPublicMarkers = listOf("com.arkivanov.mvikotlin.core.utils.internal.InternalMviKotlinApi"),
),
publicationConfig = PublicationConfig(
group = "com.arkivanov.mvikotlin",
version = deps.versions.mvikotlin.get(),
projectName = "MVIKotlin",
projectDescription = "Kotlin Multiplatform MVI framework",
projectUrl = "https://github.com/arkivanov/MVIKotlin",
scmUrl = "scm:git:git://github.com/arkivanov/MVIKotlin.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"),
),
)
setupDetekt()
ensureUnreachableTasksDisabled()
allprojects {
repositories {
mavenCentral()
google()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
}