diff --git a/anda/groovy/groovy-docs/groovy-docs.spec b/anda/groovy/groovy-docs/groovy-docs.spec index cfc8ffb654..87d9aa0074 100644 --- a/anda/groovy/groovy-docs/groovy-docs.spec +++ b/anda/groovy/groovy-docs/groovy-docs.spec @@ -1,5 +1,5 @@ Name: groovy-docs -Version: 5.0.0.ALPHA.2 +Version: 4.0.15 Release: 1%{?dist} Summary: Documentation for the Groovy programming language URL: https://groovy-lang.org/ diff --git a/anda/groovy/groovy-docs/update.rhai b/anda/groovy/groovy-docs/update.rhai index 1b24099d2c..aa8fe885ba 100644 --- a/anda/groovy/groovy-docs/update.rhai +++ b/anda/groovy/groovy-docs/update.rhai @@ -1,4 +1,2 @@ -let ver = gh_tag("apache/groovy"); -ver.replace("GROOVY_", ""); -ver.replace("_", "."); -rpm.version(ver); +let html = req("https://groovy.apache.org/download.html"); +rpm.version(find(`onclick='window\\.location\\.href="https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-sdk-([\\d.]+)\\.zip"'>`, html, 1)); diff --git a/anda/groovy/groovy.spec b/anda/groovy/groovy.spec index 66333d43ef..075efe7450 100644 --- a/anda/groovy/groovy.spec +++ b/anda/groovy/groovy.spec @@ -1,5 +1,5 @@ Name: groovy -Version: 5.0.0.ALPHA.2 +Version: 4.0.15 Release: 1%{?dist} Summary: A multi-faceted language for the Java platform BuildArch: noarch diff --git a/anda/groovy/update.rhai b/anda/groovy/update.rhai index 1b24099d2c..aa8fe885ba 100644 --- a/anda/groovy/update.rhai +++ b/anda/groovy/update.rhai @@ -1,4 +1,2 @@ -let ver = gh_tag("apache/groovy"); -ver.replace("GROOVY_", ""); -ver.replace("_", "."); -rpm.version(ver); +let html = req("https://groovy.apache.org/download.html"); +rpm.version(find(`onclick='window\\.location\\.href="https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-sdk-([\\d.]+)\\.zip"'>`, html, 1));