dotfiles/.local/bin/scripts/kover

7 lines
408 B
Bash
Executable File

#!/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}
highlight "Gradle"
curl https://services.gradle.org/distributions/ 2>/dev/null | grep 'name.*all.*sha' | grep -v rc | head -${1:-6} | cut -d- -f2