/
build.gradle
95 lines (88 loc) · 2.73 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
/*
* Copyright (c) 2019 Red Hat, Inc.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at:
*
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
*/
plugins {
id 'java'
id 'io.quarkus'
id 'org.eclipse.jkube.openshift' version '1.16.2'
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation 'io.quarkus:quarkus-resteasy-jackson'
implementation 'io.quarkus:quarkus-arc'
implementation 'io.quarkus:quarkus-resteasy'
}
group 'org.eclipse.jkube.quickstarts.gradle'
version '1.0.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}
compileTestJava {
options.encoding = 'UTF-8'
}
openshift {
useColor = true
openshiftPullSecret = "12819530-ocp42-exposed-env-pull-secret-pull-secret"
images {
image {
name = "%a"
build {
from = "registry.redhat.io/openjdk/openjdk-11-rhel8:1.2-3.1587486933"
tags = ["latest", "${project.version}"]
env {
JAVA_APP_JAR = "quarkus-run.jar"
JAVA_OPTIONS = "-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
}
assembly {
mode = "dir"
targetDir = "/deployments"
layers = [{
id = "customized-quarkus"
files = [{
source = file("build/quarkus-app/quarkus-run.jar")
outputDirectory = "."
}]
fileSets = [{
directory = file("build/quarkus-app/lib")
outputDirectory = "lib"
}, {
directory = file("build/quarkus-app/app")
outputDirectory = "app"
}, {
directory = file("build/quarkus-app/quarkus")
outputDirectory = "quarkus"
}]
}]
}
ports = ["8080"]
user = "185"
}
}
}
enricher {
config {
jkube-service {
type = "NodePort"
}
}
}
}