forked from Malinskiy/adam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
29 lines (25 loc) · 816 Bytes
/
build.gradle.kts
File metadata and controls
29 lines (25 loc) · 816 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
import org.gradle.api.publish.PublishingExtension
import java.util.Locale
plugins {
alias(libs.plugins.vanniktech.maven.publish) apply false
}
version = providers.environmentVariable("RELEASE_TAG")
.map { it.removePrefix("v") }
.getOrElse("0.1.0")
subprojects {
version = rootProject.version
plugins.withId("com.vanniktech.maven.publish") {
configure<PublishingExtension> {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ArthurKun21/adam")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}
}