ClientBoot/build.gradle
TudbuT 69d993e1ef
Some checks failed
/ Build & Publish (push) Has been cancelled
Basic implementation
2024-06-25 06:30:44 +02:00

48 lines
No EOL
960 B
Groovy

plugins {
id 'java'
id 'maven-publish'
}
group = 'de.com.baseband'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url = 'https://git.tudbut.de/api/packages/TudbuT/maven' }
}
configurations.configureEach {
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
}
dependencies {
implementation('de.tudbut:tuddylib:+')
}
test {
}
publishing {
publications {
mavenJava(MavenPublication) {
version = System.getenv("VERSION")
from components.java
}
}
repositories {
maven {
name = "Forgejo"
url = uri("https://git.tudbut.de/api/packages/BaseBand/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token " + System.getenv("PUBLISH_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}