DarkReflection/build.gradle
TudbuT 55b30e02c2
All checks were successful
/ Build & Publish (push) Successful in 48s
add publishing
2024-06-28 22:51:07 +02:00

34 lines
No EOL
714 B
Groovy

plugins {
id 'java'
id 'maven-publish'
}
group = 'de.tudbut'
version = '1.0-SNAPSHOT'
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "de.tudbut"
version = System.getenv("VERSION")
from components.java
}
}
repositories {
maven {
name = "Forgejo"
url = uri("https://git.tudbut.de/api/packages/TudbuT/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token " + System.getenv("PUBLISH_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}