-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
48 lines (42 loc) · 1.26 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
plugins {
id("version-catalog")
alias(libs.plugins.githubRelease)
alias(libs.plugins.mavenPublish)
alias(libs.plugins.reckon)
}
catalog {
versionCatalog {
from(files("externalLibs.versions.toml"))
fun mergeCatalog(catalog: VersionCatalog) {
catalog.libraryAliases.forEach { alias ->
val library = catalog.findLibrary(alias).get().get()
library(alias, "${library.group}:${library.name}:${library.version}")
}
}
mergeCatalog(versionCatalogs.find("coilLibs").get())
mergeCatalog(versionCatalogs.find("composeLibs").get())
mergeCatalog(versionCatalogs.find("firebaseLibs").get())
}
}
githubRelease {
token { System.getenv("GITHUB_TOKEN") }
owner { "kyhule" }
releaseName { version.toString() }
tagName { version.toString() }
generateReleaseNotes { true }
}
publishing {
repositories {
maven {
name = "githubPackages"
url = uri("https://maven.pkg.github.com/kyhule/polyworld-external-catalog")
credentials(PasswordCredentials::class)
}
}
}
reckon {
setDefaultInferredScope("minor")
setScopeCalc(calcScopeFromProp())
snapshots()
setStageCalc(calcStageFromProp())
}