- F-001: add workflow concurrency group (cancel-in-progress false for publish) - F-002: TDLM Maven content includeGroup uk.potatolab - F-003: TileVoidChest canUpdate false (empty updateEntity) - F-004: TileReturner canUpdate false
31 lines
897 B
Groovy
31 lines
897 B
Groovy
plugins { id 'com.gtnewhorizons.gtnhconvention' }
|
|
|
|
def gitCommit = providers.exec {
|
|
commandLine 'git', 'rev-parse', '--short=7', 'HEAD'
|
|
}.standardOutput.asText.get().trim()
|
|
|
|
group = 'uk.potatolab'
|
|
version = "${providers.gradleProperty('modVersion').get()}-${gitCommit}"
|
|
|
|
afterEvaluate {
|
|
publishing.publications.named('maven', MavenPublication) {
|
|
groupId = project.group
|
|
artifactId = 'thaumicadditions'
|
|
version = project.version
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = 'TDLM Maven'
|
|
url = 'https://git.nest.potatolab.uk:8443/api/packages/TDLM/maven'
|
|
content { includeGroup "uk.potatolab" }
|
|
if (System.getenv('MAVEN_USER') && System.getenv('MAVEN_PASSWORD')) {
|
|
credentials {
|
|
username = System.getenv('MAVEN_USER')
|
|
password = System.getenv('MAVEN_PASSWORD')
|
|
}
|
|
}
|
|
}
|
|
}
|