-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
44 lines (39 loc) · 1.08 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
import java.time.Instant
plugins {
id 'application'
id 'com.google.cloud.tools.jib' version '3.4.3'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
/* Application plugin is used for debugging */
application {
mainClassName = 'org.togetherjava.jshell.Main'
run {
standardInput = System.in
systemProperty 'line.separator', '\n'
systemProperty 'file.encoding', 'UTF-8'
}
}
test {
systemProperty 'line.separator', '\n'
systemProperty 'file.encoding', 'UTF-8'
}
jib {
from.image = 'eclipse-temurin:22-alpine'
to {
image = 'togetherjava.org:5001/togetherjava/jshellwrapper:master' ?: 'latest'
auth {
username = System.getenv('ORG_REGISTRY_USER') ?: ''
password = System.getenv('ORG_REGISTRY_PASSWORD') ?: ''
}
}
container {
ports = [ "8081-8081" ]
mainClass = 'org.togetherjava.jshell.Main'
setCreationTime(Instant.now().toString())
}
}
shadowJar {
archiveBaseName.set('JShellWrapper')
archiveClassifier.set('')
archiveVersion.set('')
}