forked from adoptium/installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (47 loc) · 1.16 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
plugins {
id "java"
}
ext {
junitVersion = "5.7.0"
testcontainersVersion = "1.15.1"
assertjCoreVersion = "3.18.1"
}
repositories {
mavenCentral()
}
group "org.adoptium"
version "1.0.0-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.register("package") {
group = "packaging"
description = "Creates Linux packages."
}
tasks.register("checkPackage") {
description = "Tests the generated packages."
group = "verification"
}
check.dependsOn(checkPackage)
def getProduct() {
return hasProperty("PRODUCT") ? PRODUCT.toString().toLowerCase(Locale.US) : null
}
def getProductVersion() {
return hasProperty("PRODUCT_VERSION") ? Integer.parseInt(PRODUCT_VERSION) : null
}
def getGPGKey() {
return hasProperty("GPG_KEY") ? GPG_KEY.toString() : null
}
def getArch() {
return hasProperty("ARCH") ? ARCH.toString() : "all"
}
def getInputDir() {
return hasProperty("INPUT_DIR") ? INPUT_DIR.toString() : null
}
def getLocalBuildStatus() {
return hasProperty("INPUT_DIR") ? "true" : "false"
}
def getContainerRegistry() {
return hasProperty("CONTAINER_REGISTRY") ? CONTAINER_REGISTRY.toString() : ""
}