-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
56 lines (52 loc) · 2.08 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.MavenPublishBasePlugin
import com.vanniktech.maven.publish.SonatypeHost
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kover)
alias(libs.plugins.dokka) apply false
alias(libs.plugins.maven.publish) apply false
}
subprojects {
plugins.withType(MavenPublishBasePlugin::class.java).configureEach {
project.extensions.getByType<MavenPublishBaseExtension>().apply {
@Suppress("UnstableApiUsage")
coordinates("io.ezard.manuscript", project.name, VERSION)
publishToMavenCentral(SonatypeHost.S01)
@Suppress("UnstableApiUsage")
pom {
name.set("Manuscript")
description.set("Component library creator for Jetpack Compose")
inceptionYear.set("2022")
url.set("https://github.com/Ezard/manuscript")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("ezard")
name.set("Ben Ezard")
url.set("https://github.com/Ezard")
}
}
scm {
url.set("https://github.com/Ezard/manuscript")
connection.set("scm:git:git://github.com/Ezard/manuscript.git")
developerConnection.set("scm:git:ssh://git@github.com/Ezard/manuscript.git")
}
}
}
}
}
koverMerged {
enable()
}