Skip to content

Commit

Permalink
Switch from runtime-dependencies to requires to get JRE (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
staktrace authored Jan 15, 2025
1 parent d7c8ab1 commit e7d74f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kotlin-format.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
description = "A command-line tool designed to enforce consistent code formatting for Kotlin."
runtime-dependencies = ["openjre-17.0.4.1_1"]
# Conceptually using runtime-dependencies = ["openjre-17.0.4.1_1"] or such would be more correct,
# but in practice any repo wanting to use this tool will have kotlin code and like already have
# a JDK/JRE of some sort. Using requires = ["jre"] instead allows reusing that already-installed
# java runtime instead of downloading a second one in the background just for this tool.
requires = ["jre"]
binaries = ["kotlin-format"]
source = "https://github.com/block/kotlin-formatter/releases/download/${version}/kotlin-formatter-${version}-all.jar"
dont-extract = true
Expand All @@ -21,4 +25,4 @@ version "1.0.0" "1.0.1" {
auto-version {
github-release = "block/kotlin-formatter"
}
}
}

0 comments on commit e7d74f7

Please sign in to comment.