Set up project structure

This commit is contained in:
2025-09-08 16:00:28 +02:00
commit 2ecd6ec021
14 changed files with 652 additions and 0 deletions

31
settings.gradle.kts Normal file
View File

@@ -0,0 +1,31 @@
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 lulzRepository(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()
lulzRepository(this)
mavenCentral()
}
versionCatalogs.create("aa").from("ltd.lulz.catalog:version-catalog:${getProperty("catalog")}")
}
rootProject.name = "core-plugin"