forked from au-research/raido
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (38 loc) · 1.29 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
import raido.TimingListener
plugins {
id 'base'
}
// added in case of accidentally running with wrong JDK version
println "Gradle build launched with Java version: " + JavaVersion.current()
ext {
versionEnvName = "RAIDO_PROJECT_VERSION"
}
/* Project version drives things like:
• values in the /public/version endpoint, and via this, the link to the
Github version on the "About" page
• docker image tag
This sets the project version using the "git describe" command, working off
of the latest tag that matches "raido-v-*".
Set env variable RAIDO_PROJECT_VERSION to something if running in an
environment where Git is unavailable (e.g. AWS CodePipeline that works off of
the .zip file instead of doing a clone).
If you're working without Git and don't know what version you're building and
just really want to get Gradle running, set the value to "unknown" or something.
See release-process.md for example git commands.
*/
println "Project version: $version"
// to upgrade the wrapper, change the version and run this task
tasks.named('wrapper') {
distributionType = Wrapper.DistributionType.ALL
gradleVersion = '7.6'
}
repositories {
}
configurations {
}
dependencies {
}
clean {
}
// prints out timings for task execution, just for observability
gradle.addListener new TimingListener()