Skip to content

Commit

Permalink
See #24091: Drop gradle from JOSM maintained plugins
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Jan 28, 2025
1 parent 1a7513d commit 749b16c
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 526 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Java CI

on:
push:
branches:
- master
- $default-branch
- $protected-branches
pull_request:
branches:
- master
- $default-branch
workflow_dispatch:

permissions:
id-token: write
attestations: write
contents: write
packages: write

jobs:
check-release-needed:
runs-on: ubuntu-latest
outputs:
release_needed: ${{ steps.create_release_needed.outputs.release_needed }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: ${{ (github.repository == 'JOSM/PicLayer' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request') && '0' || '1' }}

- name: Set release needed
id: create_release_needed
run: |
last_tag=$(git describe --tags --abbrev=0 --always)
release_needed="false"
for file in $(git diff ${last_tag}..HEAD --name-only); do
if [[ $file = "src/"* ]] || [[ $file = "data/"* ]] || [[ $file = "lib/"* ]] || [[ $file = "resources/"* ]] || [[ $file = "images/"* ]]; then
release_needed="true"
break
fi
done
echo "release_needed=$release_needed" >> $GITHUB_OUTPUT
call-workflow:
needs: check-release-needed
strategy:
matrix:
josm-revision: ["", "r19044"]
uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v3
with:
josm-revision: ${{ matrix.josm-revision }}
perform-revision-tagging: ${{ matrix.josm-revision == 'r19044' && needs.check-release-needed.outputs.release_needed == 'true' }}
secrets: inherit

18 changes: 0 additions & 18 deletions .github/workflows/gradle.yml

This file was deleted.

27 changes: 0 additions & 27 deletions build.gradle

This file was deleted.

19 changes: 9 additions & 10 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="PicLayer" default="dist" basedir=".">

<!-- edit the properties of this plugin in the file `gradle.properties` -->
<property file="${basedir}/gradle.properties"/>

<property name="josm" location="../../core/dist/josm-custom.jar"/>
<property name="plugin.dist.dir" value="../../dist"/>

<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>

<property name="plugin.main.version" value="19044"/>
<property name="plugin.author" value="Tomasz Stelmach"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
<property name="plugin.description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
<property name="plugin.icon" value="images/layericon.png"/>
<property name="plugin.link" value="https://josm.openstreetmap.de/wiki/Help/Plugin/PicLayer"/>
<property name="plugin.canloadatruntime" value="true"/>
<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
</project>
8 changes: 0 additions & 8 deletions gradle.properties

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
8 changes: 0 additions & 8 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

252 changes: 0 additions & 252 deletions gradlew

This file was deleted.

Loading

0 comments on commit 749b16c

Please sign in to comment.