generated from aura-ascend/template-library
Initial commit
This commit is contained in:
37
settings.gradle.kts
Normal file
37
settings.gradle.kts
Normal file
@@ -0,0 +1,37 @@
|
||||
import java.lang.System.getenv
|
||||
|
||||
fun getProperty(property: String): String = extra[property] as String
|
||||
|
||||
fun retrieveConfiguration(
|
||||
property: String,
|
||||
environment: String,
|
||||
): String = if (extra.has(property)) getProperty(property) else getenv(environment) ?: ""
|
||||
|
||||
fun aaRepository(repositoryHandler: RepositoryHandler) {
|
||||
repositoryHandler.maven {
|
||||
url = uri("https://gitea.lulz.ltd/api/packages/aura-ascend/maven")
|
||||
name = "GiteaPackages"
|
||||
credentials {
|
||||
username = retrieveConfiguration("repository.gitea.user", "REPOSITORY_USER")
|
||||
password = retrieveConfiguration("repository.gitea.token", "REPOSITORY_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencyResolutionManagement {
|
||||
@Suppress("UnstableApiUsage")
|
||||
repositories {
|
||||
mavenLocal()
|
||||
aaRepository(this)
|
||||
mavenCentral()
|
||||
}
|
||||
versionCatalogs.create("aa").from("ltd.lulz.catalog:version-catalog:${getProperty("catalog")}")
|
||||
}
|
||||
|
||||
pluginManagement.repositories {
|
||||
mavenLocal()
|
||||
aaRepository(this)
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
||||
rootProject.name = "library"
|
||||
Reference in New Issue
Block a user