/
build.gradle.kts
42 lines (36 loc) · 1023 Bytes
/
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
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.3.3/samples
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
`version-catalog`
`maven-publish`
}
group = "com.saurabhsandav"
catalog {
// declare the aliases, bundles and versions in this block
versionCatalog {
from(files("$projectDir/src/libs.versions.toml"))
}
}
publishing {
repositories {
maven {
name = "CommonVersions"
url = uri("https://maven.pkg.github.com/saurabhsandav/CommonVersions")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("maven") {
artifactId = "common-versions"
from(components["versionCatalog"])
}
}
}