48 lines
No EOL
963 B
Groovy
48 lines
No EOL
963 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:[1,)')
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
}
|
|
} |