-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
62 lines (52 loc) · 1.83 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
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost
val versionName = "12.3.0"
val groupId = "com.kylecorry.andromeda"
buildscript {
extra.apply {
set("targetVersion", 35)
set("compileVersion", 35)
}
}
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
id("com.vanniktech.maven.publish") version "0.30.0"
}
subprojects {
val artifactId = project.name
plugins.apply("com.android.library")
plugins.apply("kotlin-android")
plugins.apply("com.vanniktech.maven.publish")
version = versionName
group = groupId
mavenPublishing {
coordinates(groupId, artifactId, versionName)
configure(AndroidSingleVariantLibrary("release", true, true))
pom {
name.set("Andromeda $artifactId")
description.set("A collection of Android libraries for simplifying development using Android APIs.")
url.set("https://github.com/kylecorry31/andromeda")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("kylecorry31")
name.set("Kyle Corry")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/kylecorry31/andromeda.git")
developerConnection.set("scm:git:ssh://github.com:kylecorry31/andromeda.git")
url.set("https://github.com/kylecorry31/andromeda")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
}