-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (61 loc) · 1.61 KB
/
build.gradle
File metadata and controls
69 lines (61 loc) · 1.61 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import org.eclipse.jgit.api.errors.RefAlreadyExistsException
buildscript {
repositories {
mavenCentral()
mavenLocal()
}
}
plugins {
id 'java'
id 'idea'
id "at.zierler.yamlvalidator" version "1.5.0"
id "com.github.spotbugs" version "5.0.13" apply false
id "net.ltgt.errorprone" version "3.0.1" apply false
id 'info.solidsoft.pitest' version '1.9.11' apply false
id 'org.ajoberstar.grgit' version '4.1.1'
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0"
}
idea.project {
vcs = 'Git'
languageLevel = JavaVersion.VERSION_17
targetBytecodeVersion = JavaVersion.VERSION_17
}
idea.module {
downloadJavadoc = false
downloadSources = true
excludeDirs += file('logs')
excludeDirs += file('gradle')
excludeDirs += file('build')
excludeDirs += file('target')
excludeDirs += file('.idea')
excludeDirs += file('.gradle')
excludeDirs += file('logs2')
}
yamlValidator {
searchPaths = ['.github/workflows/']
allowDuplicates = false
searchRecursive = true
}
task 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.envoy"
nexusPublishing {
repositories {
sonatype {
username = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PASSWORD")
}
}
}