-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (45 loc) · 1.28 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import org.eclipse.jgit.api.errors.RefAlreadyExistsException
plugins {
id "com.github.spotbugs" version "+"
id "idea"
id 'org.ajoberstar.grgit' version '+'
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0"
}
idea.project {
vcs = 'Git'
languageLevel = JavaVersion.VERSION_17
targetBytecodeVersion = JavaVersion.VERSION_17
}
ext.projectName = "Wise Environment"
ext.projectDescription = "Wise Environment"
ext.projectArtifactName = "wise-environment-starter"
apply from: 'build.common.gradle'
tasks.register('tagRelease') {
doLast {
try {
grgit.tag.add {
name = "v$version"
message = "Release of ${version}"
}
grgit.push(refsOrSpecs: ["v$version"])
}
catch (RefAlreadyExistsException ignored) {
logger.warn("Tag v$version already exists.")
}
}
}
group = "com.transferwise.common"
nexusPublishing {
repositories {
sonatype {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
spotbugs {
effort = Effort.valueOf('MAX')
reportLevel = Confidence.valueOf('DEFAULT')
}