-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
60 lines (56 loc) · 2.1 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("com.android.application").apply(false)
id("com.android.library").apply(false)
kotlin("android").apply(false)
id("com.vanniktech.maven.publish") version "0.25.1" apply false
}
group = "io.github.joesteven"
version = "1.1.3"
allprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = Versions.Java.jvmTarget
// allWarningsAsErrors = true
freeCompilerArgs = freeCompilerArgs + listOf(
"-opt-in=kotlin.RequiresOptIn",
"-Xcontext-receivers",
"-Xskip-prerelease-check",
)
}
}
plugins.withId("com.vanniktech.maven.publish.base") {
@Suppress("UnstableApiUsage")
configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
pom {
group = "io.github.joesteven"
version = "1.1.3"
name.set("kmp-walletconnect")
description.set("Video player for Kotlin multiplatform")
url.set("https://github.com/JoeSteven/KMP-VideoPlayer/")
licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
distribution.set("repo")
}
}
developers {
developer {
id.set("Mimao")
name.set("Mimao")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/JoeSteven/KMP-WalletConnect/")
connection.set("scm:git:git://github.com/JoeSteven/KMP-WalletConnect.git")
developerConnection.set("scm:git:git://github.com/JoeSteven/KMP-WalletConnect.git")
}
}
}
}
}