forked from Pedro-Pathing/PedroPathing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
31 lines (27 loc) · 996 Bytes
/
build.gradle.kts
File metadata and controls
31 lines (27 loc) · 996 Bytes
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
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.deployer) apply false
alias(libs.plugins.kotlin.android) apply false
}
subprojects {
group = "com.pedropathing"
version = property("version") as String
}
if (System.getenv("PUBLISH_PEDRO") == "yes please") {
tasks.register("deployCentralPortal") {
group = "publishing"
description = "Publishes all subprojects to Maven Central."
dependsOn(subprojects.map { it.tasks.named("deployCentralPortal") })
}
tasks.register("deployNexusSnapshot") {
group = "publishing"
description = "Publishes all subprojects to Maven Central Snapshots."
dependsOn(subprojects.map { it.tasks.named("deployNexusSnapshot") })
}
}
tasks.register("deployLocal") {
group = "publishing"
description = "Publishes all subprojects to Maven Local."
dependsOn(subprojects.map { it.tasks.named("deployLocal") })
}