Skip to content

Commit 06f5d38

Browse files
committed
Feature: Add Java 21 + Gradle
1 parent 4f9215b commit 06f5d38

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

deproxy/squid.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ http_port 3128
22
cache_dir ufs /var/spool/squid 100 16 256
33
cache_mem 256 MB
44

5-
acl allowed_sites dstdomain .github.com .pypi.org .npmjs.org .golang.org .maven.org .rubygems.org .crates.io .packagist.org .docker.io .docker.com .dockerhub.com .gcr.io .ghcr.io
5+
acl allowed_sites dstdomain .github.com .pypi.org .npmjs.org .golang.org \
6+
.maven.org .maven.apache.org .jcenter.bintray.com gradle.org .rubygems.org .crates.io .packagist.org .docker.io .docker.com .dockerhub.com .gcr.io .ghcr.io
67
http_access allow allowed_sites
78
http_access deny all
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM gradle:jdk23
2+
3+
RUN mkdir -p /app
4+
WORKDIR /app
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"Template": "java_21",
3+
"Labels": ["java"],
4+
"Enabled": true,
5+
"Connections": [],
6+
"ContainerOptions": {
7+
"CompileTTL": 30,
8+
"RunTTL": 5,
9+
"MemoryLimit": 524288000
10+
},
11+
"Workdir": "/app",
12+
"IsSupportPackage": true,
13+
14+
"Actions": {
15+
"default": {
16+
"Id": "default",
17+
"IsDefault": true,
18+
"Name": "Java 21",
19+
"CompileCmd": "javac -d out *.java",
20+
"RunCmd": "java -cp out Main {ARGS} < {STDIN}",
21+
"ScriptOptions": {
22+
"SourceFile": "Main.java"
23+
}
24+
},
25+
26+
"java_21_gradle": {
27+
"Id": "java_21_gradle",
28+
"IsDefault": true,
29+
"Name": "Java 21 (Gradle)",
30+
"CompileCmd": "gradle build --quiet",
31+
"RunCmd": "gradle run --quiet",
32+
"ScriptOptions": {
33+
"SourceFile": "Main.java"
34+
}
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)