forked from gurkenlabs/litiengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
32 lines (26 loc) · 844 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
plugins {
id "java"
alias libs.plugins.spotless
alias libs.plugins.versions
alias libs.plugins.dependencyCheck
alias libs.plugins.grgit
alias libs.plugins.nexusPublish
alias libs.plugins.sonarQube
alias libs.plugins.semverguru
id "licensing-defaults"
id "sonarqube-defaults"
}
group = gurkenlabs_group
allprojects {
project.version += isTaggedRevision(project.version) ? "" : "-SNAPSHOT"
project.getLogger().lifecycle("Set project '{}' version to '{}'.", project.name, project.version)
}
nexusPublishing {
useStaging.set(isTaggedRevision(project.version))
repositories {
sonatype {
username = project.findProperty('sonatypeUsername') ?: project.findProperty('OSSRH_USERNAME') ?: ''
password = project.findProperty('sonatypePassword') ?: project.findProperty('OSSRH_PASSWORD') ?: ''
}
}
}