forked from rockcrafters/java-rockcraft-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
26 lines (22 loc) · 999 Bytes
/
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
plugins {
id('application')
id('io.github.rockcrafters.rockcraft') version "0.2.1"
}
version = 0.01
java.toolchain.languageVersion = JavaLanguageVersion.of(11)
jar {
manifest {
attributes 'Main-Class': 'com.example.app.App'
}
}
rockcraft {
targetRelease=11 // set target release for multi-release jars to 17
buildPackage="openjdk-21-jdk-headless" // use openjdk-21-jdk-headless to create runtime image
summary="This is an app image summary" // summary string to be included in the image manifest
description = "README.md" // include README.md as the image description
slices = ['coreutils_bins', 'dash_bins'] // add coreutils and /bin/sh to the target image
architectures = ['amd64'] // build amd64 image
command = "/usr/bin/java --version" // print java version as a startup service
branch = "ubuntu-24.04" // specify chisel-releases branch
source = "https://github.com/canonical/chisel-releases" // specify chisel-releases options
}