pantry/projects/ktlint.github.io/package.yml
Jakob Vase 712efa0120
Remove openjdk dependency from ktlint (#4983)
* Remove openjdk dependency from ktlint

I'm not certain it's the right solution, but for earlier versions of ktlint at least, I'm pretty sure it depends on earlier versions of java.

Additionally, you could also use another jdk like temurin or zulu, so I'm leaning towards not specifying the dependency at all?

* Update package.yml

* back to depending on openjdk

But change the version to '*', as this tool should not decide the openjdk version to use.

* remove whitespace
2024-01-25 12:54:11 -05:00

23 lines
455 B
YAML

distributable:
url: https://github.com/pinterest/ktlint/releases/download/{{version}}/ktlint-{{version}}.zip
versions:
github: pinterest/ktlint
warnings:
- vendored
dependencies:
openjdk.org: '*'
build:
- install -D ktlint-{{version}}/bin/ktlint {{prefix}}/bin/ktlint
provides:
- bin/ktlint
test:
- ktlint --version | grep {{version}}
- echo 'fun main( ) {}' > Main.kt
- ktlint -F Main.kt
- cat Main.kt | grep 'fun main() {}'