Files
ZomboidForge/build-logic/src/main/kotlin/zomboidforge.publishing.gradle.kts
T

24 lines
737 B
Kotlin

// Publishing to the Maven registry of the ZomboidForge Gitea. Credentials come from the Gradle
// properties giteaUsername and giteaPassword (or ORG_GRADLE_PROJECT_giteaUsername and
// ORG_GRADLE_PROJECT_giteaPassword), and are only read when a publish task runs.
plugins {
`maven-publish`
}
publishing {
repositories {
maven {
name = "gitea"
url = uri("https://git.security-command.org/api/packages/overlord/maven")
credentials(PasswordCredentials::class)
}
// build/repo of the root project: for the Gradle plugin's functional tests.
maven {
name = "build"
url = uri(layout.settingsDirectory.dir("build/repo"))
}
}
}