Compare commits

..

No commits in common. "2c6dd96cd70b9b4d5ff003b23fbab9ec77ba1ffb" and "e2e67cf2cc6ff984da7c62ef9c8b9a45c7cec32c" have entirely different histories.

5 changed files with 13 additions and 27 deletions

View file

@ -7,8 +7,8 @@ jobs:
runs-on: antville runs-on: antville
environment: environment:
name: antville.org name: weblogs.at
url: https://antville.org url: https://weblogs.at
steps: steps:
- name: Copy files to production server - name: Copy files to production server

View file

@ -1,9 +1,9 @@
name: Release name: Release
on: on:
workflow_dispatch:
push: push:
tags: '2*' tags:
- 'v*'
permissions: permissions:
contents: write contents: write
@ -15,7 +15,6 @@ jobs:
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
LC_TIME: en_US.UTF-8 LC_TIME: en_US.UTF-8
TODAY: $(date +'%d %b %Y')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -24,18 +23,6 @@ jobs:
run: ./gradlew assembleDist run: ./gradlew assembleDist
- name: Create release - name: Create release
uses: actions/forgejo-release@v2
with:
direction: upload
url: https://code.host.antville.org
token: ${{ github.token }}
title: ${{ env.TODAY }}
#tag: $(date +'%Y.%m.%d')
release-dir: build/distributions
release-notes-assistant: true
verbose: true
- name: Create release at GitHub
# FIXME: Currently only outputs gh command; adapt for Forgejo # FIXME: Currently only outputs gh command; adapt for Forgejo
run: | run: |
echo gh release create "$GITHUB_REF_NAME" \ echo gh release create "$GITHUB_REF_NAME" \
@ -43,7 +30,7 @@ jobs:
--title "$(date +'%d %b %Y')" \ --title "$(date +'%d %b %Y')" \
--generate-notes --generate-notes
- name: Upload release assets to GitHub - name: Upload assets
# FIXME: Currently only outputs gh command; adapt for Forgejo # FIXME: Currently only outputs gh command; adapt for Forgejo
run: | run: |
echo gh release upload "$GITHUB_REF_NAME" \ echo gh release upload "$GITHUB_REF_NAME" \

View file

@ -58,16 +58,16 @@ configurations {
} }
dependencies { dependencies {
implementation 'com.google.code.gson:gson:2.12.1' implementation 'com.google.code.gson:gson:2.11.0'
implementation 'commons-codec:commons-codec:1.18.0' implementation 'commons-codec:commons-codec:1.18.0'
implementation 'commons-fileupload:commons-fileupload:1.5' implementation 'commons-fileupload:commons-fileupload:1.5'
implementation 'commons-logging:commons-logging:1.3.5' implementation 'commons-logging:commons-logging:1.3.4'
implementation 'commons-net:commons-net:3.11.1' implementation 'commons-net:commons-net:3.11.1'
implementation 'com.sun.mail:javax.mail:1.6.2' implementation 'com.sun.mail:javax.mail:1.6.2'
implementation 'javax.servlet:javax.servlet-api:4.0.1' implementation 'javax.servlet:javax.servlet-api:4.0.1'
implementation 'org.ccil.cowan.tagsoup:tagsoup:1.2.1' implementation 'org.ccil.cowan.tagsoup:tagsoup:1.2.1'
implementation 'org.eclipse.jetty:jetty-servlet:9.4.57.v20241219' implementation 'org.eclipse.jetty:jetty-servlet:9.4.56.v20240826'
implementation 'org.eclipse.jetty:jetty-xml:9.4.57.v20241219' implementation 'org.eclipse.jetty:jetty-xml:9.4.56.v20240826'
implementation 'org.mozilla:rhino-all:1.8.0' implementation 'org.mozilla:rhino-all:1.8.0'
implementation 'org.sejda.imageio:webp-imageio:0.1.6' implementation 'org.sejda.imageio:webp-imageio:0.1.6'
implementation 'xerces:xercesImpl:2.12.2' implementation 'xerces:xercesImpl:2.12.2'

View file

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME

View file

@ -149,13 +149,12 @@ public class Server implements Runnable {
* check if we are running on a Java 2 VM - otherwise exit with an error message * check if we are running on a Java 2 VM - otherwise exit with an error message
*/ */
public static void checkJavaVersion() { public static void checkJavaVersion() {
String javaVersion = System.getProperty("java.version", "0"); String javaVersion = System.getProperty("java.version");
int majorVersion = Integer.parseInt(javaVersion.split("\\.")[0]);
if (majorVersion < 11) { if ((javaVersion == null) || !javaVersion.startsWith("11")) {
System.err.println("This version of Helma requires Java 11 or greater."); System.err.println("This version of Helma requires Java 11 or greater.");
if (majorVersion == 0) { // don't think this will ever happen, but you never know if (javaVersion == null) { // don't think this will ever happen, but you never know
System.err.println("Your Java Runtime did not provide a version number. Please update to a more recent version."); System.err.println("Your Java Runtime did not provide a version number. Please update to a more recent version.");
} else { } else {
System.err.println("Your Java Runtime is version " + javaVersion + System.err.println("Your Java Runtime is version " + javaVersion +