mirror of
https://github.com/ivabus/pantry
synced 2024-12-01 20:45:10 +03:00
712efa0120
* 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
23 lines
455 B
YAML
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() {}'
|