Builds Ubuntu ROCK image for your application. The plugin requires rockcraft installed.
Install rockcraft: snap install rockcraft
.
To use the plugin, apply the following two steps:
Groovy
plugins {
id 'io.github.rockcrafters.rockcraft' version '0.2.1'
}
Kotlin
plugins {
id("io.github.rockcrafters.rockcraft") version "0.2.1"
}
Groovy
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'io.github.rockcrafters.rockcraft:0.2.1'
}
}
apply plugin: 'io.github.rockcrafters.rockcraft-plugin'
Kotlin
buildscript {
repositories {
maven {
setUrl("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("io.github.rockcrafters.rockcraft:0.2.1")
}
}
apply(plugin = "io.github.rockcrafters.rockcraft")
The plugin allows setting up container summary and description, target architectures and the startup service command line.
Groovy
rockcraft {
buildPackage = 'openjdk-21-jdk'
targetRelease = 21
summary = 'A ROCK summary'
description = 'README.md'
command = '/usr/bin/java -jar jars/application.jar'
source = 'http://github.com/myuser/chisel-releases'
branch = 'my-chisel-release-branch'
slices = ['busybox_bins', 'fontconfig_config']
architectures = ['amd64', 'arm64']
createService = false
rockcraftYaml = 'rockcraft.yaml'
}
Kotlin
rockcraft {
buildPackage = "openjdk-21-jdk"
targetRelease = 21
summary = "A ROCK summary"
description = "README.md"
command = "/usr/bin/java -jar jars/application.jar"
source = "http://github.com/myuser/chisel-releases"
branch = "my-chisel-release-branch"
slices("busybox_bins", "fontconfig_config")
architectures("amd64", "arm64")
createService = false
rockcraftYaml = "rockcraft.yaml"
}
Issues can be reported to the Issue tracker.
Contributions can be submitted via Pull requests,
- Allow custom rockcraft.yaml/snippets
- Error handling (empty jar file), no main class