-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
95 lines (80 loc) · 2.05 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
plugins {
id 'groovy'
id 'maven-publish'
id 'to.wetransform.semantic-release-version' version '2.1.2'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
group = 'to.wetransform'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'https://artifactory.wetransform.to/artifactory/local'
}
}
dependencies{
implementation gradleApi()
implementation localGroovy()
// template engine
// https://github.com/PebbleTemplates/pebble
implementation 'io.pebbletemplates:pebble:3.2.2'
implementation 'com.vdurmont:semver4j:3.1.0'
// YAML processing
implementation 'org.yaml:snakeyaml:2.3'
// Docker plugin
implementation 'com.bmuschko:gradle-docker-plugin:9.4.0'
// Encryption library
implementation 'to.wetransform:alice:1.0.0', {
exclude group: 'org.codehaus.groovy', module: 'groovy'
}
// testing
testImplementation 'junit:junit:4.13.2'
}
/*
* Some general project configuration
*/
configurations.all {
// ensure SNAPSHOTs are updated every time if needed
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
configurations {
// activate dependency locks for lockfile generation (used by trivy security scan)
compileClasspath {
resolutionStrategy.activateDependencyLocking()
}
runtimeClasspath {
resolutionStrategy.activateDependencyLocking()
}
}
tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '8.11.1'
}
/*
* Publishing to Maven
*
* https://docs.gradle.org/current/userguide/publishing_maven.html
*/
publishing {
publications {
plugin(MavenPublication) {
from components.java
}
}
repositories {
maven {
url 'https://artifactory.wetransform.to/artifactory/' +
(version.endsWith('-SNAPSHOT') ? 'libs-snapshot-local' : 'libs-release-local')
credentials {
username project.hasProperty('wetfArtifactoryUser') ? wetfArtifactoryUser : ''
password project.hasProperty('wetfArtifactoryPassword') ? wetfArtifactoryPassword : ''
}
}
}
}