Set up project structure

This commit is contained in:
2025-09-09 10:01:14 +02:00
commit 181aed2a25
19 changed files with 678 additions and 0 deletions

37
settings.gradle.kts Normal file
View 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 = "service"