Skip to content

Commit

Permalink
Merge branch 'master' into feature_vollzahler_input
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Maierhofer committed Jan 17, 2025
2 parents 7ca2655 + 163fd12 commit 5c99331
Show file tree
Hide file tree
Showing 278 changed files with 11,251 additions and 3,644 deletions.
7 changes: 6 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="junit/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
<classpathentry exported="true" kind="src" path="/jameica"/>
<classpathentry kind="lib" path="lib/nc.jar"/>
<classpathentry exported="true" kind="lib" path="lib/javax.mail-1.6.2.jar"/>
Expand All @@ -28,5 +28,10 @@
<classpathentry exported="true" kind="lib" path="lib/jsoup-1.18.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/vinnie-2.0.2.jar"/>
<classpathentry exported="true" kind="lib" path="lib/ez-vcard-0.12.1.jar"/>
<classpathentry exported="true" kind="lib" path="/hibiscus/lib/pdfbox/pdfbox-3.0.2.jar"/>
<classpathentry kind="lib" path="lib/xmpbox-3.0.3.jar"/>
<classpathentry kind="lib" path="lib/jakarta.activation-api-2.1.3.jar"/>
<classpathentry kind="lib" path="lib/dom4j-2.1.4.jar"/>
<classpathentry kind="lib" path="lib/mustang-2.16.0.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
40 changes: 40 additions & 0 deletions .github/workflows/buildcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant

name: OpenJVerein build check

on:
pull_request:
types: [opened, reopened, synchronize, edited]
paths:
- 'plugin.xml'
- 'build/**'
- 'lib/**'
- 'lib.src/**'
- 'src/**'
jobs:
call-reusable-workflow:
uses: ./.github/workflows/reusable-build.yml

build-check:
needs: call-reusable-workflow
runs-on: ubuntu-latest
steps:
- name: Restore cached tags and jars
id: cache-tags-jars
uses: actions/cache@v4
with:
path: |
./cached-tags
jameica
hibiscus
key: ${{ runner.os }}-${{ github.repository_id }}

- name: Checkout openjverein
uses: actions/checkout@v4
with:
path: jverein

- name: Build openjverein plugin
working-directory: ./
run: ant -noinput -buildfile jverein/build/build.xml compile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant

name: openjverein nightly release
name: OpenJVerein nightly release

on:
push:
Expand All @@ -11,41 +11,24 @@ on:
- '**'

jobs:
build:
name: Building release and upload to branch
call-reusable-workflow:
uses: ./.github/workflows/reusable-build.yml

nightly-build:
needs: call-reusable-workflow
runs-on: ubuntu-latest

steps:
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
architecture: x64

- name: Check out jameica
uses: actions/checkout@v4
- name: Restore cached tags and jars
id: cache-tags-jars
uses: actions/cache@v4
with:
repository: willuhn/jameica
path: jameica

- name: Build jameica nightly
working-directory: ./
run: ant -noinput -buildfile jameica/build/build.xml nightly

- name: Check out hibiscus
uses: actions/checkout@v4
with:
repository: willuhn/hibiscus
path: hibiscus

- name: Build hibiscus nightly
working-directory: ./
run: ant -noinput -buildfile hibiscus/build/build.xml nightly
path: |
./cached-tags
jameica
hibiscus
key: ${{ runner.os }}-${{ github.repository_id }}

- name: Checkout openjverein
id: openjverein_checkout
uses: actions/checkout@v4
with:
path: jverein
Expand All @@ -55,7 +38,7 @@ jobs:
working-directory: ./
run: |
ant_output=$(ant -e -q -noinput -buildfile jverein/build/build.xml nightly)
echo $ant_output
echo ${ant_output}
ssa="SELECTED_VERSION="
ssb=".zip"
Expand All @@ -74,11 +57,11 @@ jobs:
tmp_path=$(echo $text | sed -rn 's/^([^[:blank:]]*).*$/\1/p')
echo "selected_version=${tmp_version}" >> $GITHUB_OUTPUT
echo "selected_filename=$tmp_filename" >> $GITHUB_OUTPUT
echo "selected_path=$tmp_path" >> $GITHUB_OUTPUT
echo "selected_filename=${tmp_filename}" >> $GITHUB_OUTPUT
echo "selected_path=${tmp_path}" >> $GITHUB_OUTPUT
builddatetime=$(date +'%Y-%m-%d %H:%M')
echo "### Version: $tmp_version | filename: $tmp_filename | build datetime: $builddatetime" >> $GITHUB_STEP_SUMMARY
echo "### Version: ${tmp_version} | filename: ${tmp_filename} | build datetime: ${builddatetime}" >> $GITHUB_STEP_SUMMARY
# Update tag
- name: Tag repo
Expand All @@ -95,4 +78,4 @@ jobs:
prerelease: true
name: Release ${{ steps.openjverein.outputs.selected_version }}
files: ./jverein/${{ steps.openjverein.outputs.selected_path }}
generate_release_notes: false
generate_release_notes: false
53 changes: 18 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,29 @@
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant

name: openjverein official release
name: OpenJVerein official release

on: workflow_dispatch

jobs:
build:
name: Building release and upload to branch
call-reusable-workflow:
uses: ./.github/workflows/reusable-build.yml

release:
needs: call-reusable-workflow
runs-on: ubuntu-latest

steps:
- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
architecture: x64

- name: Check out jameica
uses: actions/checkout@v4
- name: Restore cached tags and jars
id: cache-tags-jars
uses: actions/cache@v4
with:
repository: willuhn/jameica
path: jameica

- name: Build jameica nightly
working-directory: ./
run: ant -noinput -buildfile jameica/build/build.xml nightly

- name: Check out hibiscus
uses: actions/checkout@v4
with:
repository: willuhn/hibiscus
path: hibiscus

- name: Build hibiscus nightly
working-directory: ./
run: ant -noinput -buildfile hibiscus/build/build.xml nightly
path: |
./cached-tags
jameica
hibiscus
key: ${{ runner.os }}-${{ github.repository_id }}

- name: Checkout openjverein
id: openjverein_checkout
uses: actions/checkout@v4
with:
path: jverein
Expand All @@ -50,7 +33,7 @@ jobs:
working-directory: ./
run: |
ant_output=$(ant -e -q -noinput -buildfile jverein/build/build.xml)
echo $ant_output
echo ${ant_output}
ssa="SELECTED_VERSION="
ssb=".zip"
Expand All @@ -70,11 +53,11 @@ jobs:
tmp_path=$(echo $text | sed -rn 's/^([^[:blank:]]*).*$/\1/p')
echo "selected_version=${tmp_version}" >> $GITHUB_OUTPUT
echo "selected_filename=$tmp_filename" >> $GITHUB_OUTPUT
echo "selected_path=$tmp_path" >> $GITHUB_OUTPUT
echo "selected_filename=${tmp_filename}" >> $GITHUB_OUTPUT
echo "selected_path=${tmp_path}" >> $GITHUB_OUTPUT
builddatetime=$(date +'%Y-%m-%d %H:%M')
echo "### Version: $tmp_version | filename: $tmp_filename | build datetime: $builddatetime" >> $GITHUB_STEP_SUMMARY
echo "### Version: ${tmp_version} | filename: ${tmp_filename} | build datetime: ${builddatetime}" >> $GITHUB_STEP_SUMMARY
- name: Release
uses: softprops/action-gh-release@v2
Expand All @@ -83,4 +66,4 @@ jobs:
prerelease: false
name: Release ${{ steps.openjverein.outputs.selected_version }}
files: ./jverein/${{ steps.openjverein.outputs.selected_path }}
generate_release_notes: true
generate_release_notes: true
97 changes: 97 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Reusable build steps

on:
workflow_call:

jobs:
setup-java-and-cache:
runs-on: ubuntu-latest
steps:
- name: Set up JDK for x64
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
architecture: x64

- name: Set env
id: setenvs
run: |
jameica_tag=$(git ls-remote --refs --tags --sort="-v:refname" https://github.com/willuhn/jameica.git V_\* | head -1 | cut -f 2 | cut -d / -f 3)
echo "jameica_tag=${jameica_tag}" >> $GITHUB_ENV
hibiscus_tag=$(git ls-remote --refs --tags --sort="-v:refname" https://github.com/willuhn/hibiscus.git V_\* | head -1 | cut -f 2 | cut -d / -f 3)
echo "hibiscus_tag=${hibiscus_tag}" >> $GITHUB_ENV
echo "### jameica_tag: ${jameica_tag} | hibiscus_tag: ${hibiscus_tag}"
- name: Restore cached tags and folders
id: cache-tags-jars
uses: actions/cache@v4
with:
path: |
./cached-tags
jameica
hibiscus
key: ${{ runner.os }}-${{ github.repository_id }}

- name: Load cached tags
id: load-cache
run: |
if [ -f ./cached-tags/jameica_tag ]; then
cached_jameica_tag=$(cat ./cached-tags/jameica_tag)
echo "cached_jameica_tag=${cached_jameica_tag}" >> $GITHUB_ENV
else
echo "cached_jameica_tag=" >> $GITHUB_ENV
fi
if [ -f ./cached-tags/hibiscus_tag ]; then
cached_hibiscus_tag=$(cat ./cached-tags/hibiscus_tag)
echo "cached_hibiscus_tag=${cached_hibiscus_tag}" >> $GITHUB_ENV
else
echo "cached_hibiscus_tag=" >> $GITHUB_ENV
fi
echo "### cached_jameica_tag: ${cached_jameica_tag} | cached_hibiscus_tag: ${cached_hibiscus_tag}"
- name: Checkout jameica
if: ${{ env.cached_jameica_tag != env.jameica_tag }}
uses: actions/checkout@v4
with:
repository: willuhn/jameica
path: jameica
ref: ${{ env.jameica_tag }}

- name: Build jameica jar
if: ${{ env.cached_jameica_tag != env.jameica_tag }}
working-directory: ./
run: |
ant -noinput -buildfile jameica/build/build.xml jar
find jameica/releases/ -type f -name jameica.jar -exec cp {} jameica/releases/jameica-lib.jar \;
- name: Checkout hibiscus
if: ${{ env.cached_hibiscus_tag != env.hibiscus_tag }}
uses: actions/checkout@v4
with:
repository: willuhn/hibiscus
path: hibiscus
ref: ${{ env.hibiscus_tag }}

- name: Build hibiscus jar
if: ${{ env.cached_hibiscus_tag != env.hibiscus_tag }}
working-directory: ./
run: |
ant -noinput -buildfile hibiscus/build/build.xml jar
find hibiscus/releases/ -type f -name hibiscus.jar -exec cp {} hibiscus/releases/hibiscus-lib.jar \;
- name: Create cache files and needed folders
run: |
mkdir -p ./cached-tags
echo "${{ env.jameica_tag }}" > ./cached-tags/jameica_tag
echo "${{ env.hibiscus_tag }}" > ./cached-tags/hibiscus_tag
- name: Cache tags and folders
uses: actions/cache@v4
if: always()
with:
path: |
./cached-tags
jameica
hibiscus
key: ${{ runner.os }}-${{ github.repository_id }}
6 changes: 3 additions & 3 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=11
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Das Handbuch ist im Repository https://github.com/openjverein/jverein-Book. Der
Für die OpenJVerein-Entwicklung werden benötigt

- Eclipse/IntelliJ IDEA
- Java 11+ (JDK)
- Java 11 (JDK)

Es wird Java 11 (keine höhere Version) benötigt, damit die Kompatibilität zu Jameica gewährleistet ist und keine APIs verwendet werden, die in späteren Java Versionen eingeführt wurden.

# Build und Test
Build und Test sind hier beschrieben: https://www.willuhn.de/wiki/doku.php?id=develop:eclipse
Expand Down
2 changes: 1 addition & 1 deletion build/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

<target name="compile" depends="init, clean">
<mkdir dir="${class.dir}" />
<javac debug="true" includeantruntime="false" debuglevel="lines,vars,source" source="${define.java.version}" target="${define.java.version}" encoding="${define.encoding}" deprecation="true" destdir="${class.dir}" srcdir="${src.dir}">
<javac debug="true" includeantruntime="false" debuglevel="lines,vars,source" release="${define.java.version}" encoding="${define.encoding}" deprecation="true" destdir="${class.dir}" srcdir="${src.dir}">
<classpath refid="compilepath" />
</javac>
</target>
Expand Down
Loading

0 comments on commit 5c99331

Please sign in to comment.