48 lines
No EOL
960 B
Groovy
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)
|
|
}
|
|
}
|
|
}
|
|
} |