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
This commit is contained in:
Jakob Vase 2024-01-25 18:54:11 +01:00 committed by GitHub
parent 5b598f24cd
commit 712efa0120
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,11 +8,10 @@ warnings:
- vendored
dependencies:
openjdk.org: ^20
openjdk.org: '*'
build:
- mkdir -p {{prefix}}/bin
- cp ktlint-{{version}}/bin/ktlint {{prefix}}/bin/
- install -D ktlint-{{version}}/bin/ktlint {{prefix}}/bin/ktlint
provides:
- bin/ktlint
@ -21,4 +20,4 @@ test:
- ktlint --version | grep {{version}}
- echo 'fun main( ) {}' > Main.kt
- ktlint -F Main.kt
- cat Main.kt | grep 'fun main() {}'
- cat Main.kt | grep 'fun main() {}'