From b6bf3f40271b146f530eff54415c6d49e4532263 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Sun, 21 Jan 2024 15:44:26 +0200 Subject: [PATCH] new file: projects/ktlint.github.io/package.yml --- projects/ktlint.github.io/package.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 projects/ktlint.github.io/package.yml diff --git a/projects/ktlint.github.io/package.yml b/projects/ktlint.github.io/package.yml new file mode 100644 index 00000000..b7f0f41d --- /dev/null +++ b/projects/ktlint.github.io/package.yml @@ -0,0 +1,24 @@ +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() {}' \ No newline at end of file