mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 10:25:05 +03:00
24 lines
No EOL
468 B
YAML
24 lines
No EOL
468 B
YAML
distributable:
|
|
url: https://github.com/pinterest/ktlint/releases/download/{{version}}/ktlint-{{version}}.zip
|
|
|
|
versions:
|
|
github: pinterest/ktlint
|
|
|
|
warnings:
|
|
- vendored
|
|
|
|
dependencies:
|
|
openjdk.org: ^20
|
|
|
|
build:
|
|
- mkdir -p {{prefix}}/bin
|
|
- cp ktlint-{{version}}/bin/ktlint {{prefix}}/bin/
|
|
|
|
provides:
|
|
- bin/ktlint
|
|
|
|
test:
|
|
- ktlint --version | grep {{version}}
|
|
- echo 'fun main( ) {}' > Main.kt
|
|
- ktlint -F Main.kt
|
|
- cat Main.kt | grep 'fun main() {}' |