dotfiles/.local/bin/scripts/kover

7 lines
408 B
Plaintext
Raw Normal View History

2021-09-18 19:53:14 +00:00
#!/bin/sh
# Prints the latest Gradle and Kotlin versions
highlight "Kotlin"
curl https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/maven-metadata.xml 2>/dev/null | grep 'version>' | grep -iv '\(m\|rc\)' | sed 's/.*>\(.*\)<.*/\1/' | tail -${1:-6}
2021-09-18 19:53:14 +00:00
highlight "Gradle"
curl https://services.gradle.org/distributions/ 2>/dev/null | grep 'name.*all.*sha' | grep -v rc | head -${1:-6} | cut -d- -f2