Skip to content

Commit 749b16c

Browse files
committed
See #24091: Drop gradle from JOSM maintained plugins
Signed-off-by: Taylor Smock <tsmock@meta.com>
1 parent 1a7513d commit 749b16c

11 files changed

Lines changed: 107 additions & 526 deletions

File tree

.github/workflows/ant.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- $default-branch
8+
- $protected-branches
9+
pull_request:
10+
branches:
11+
- master
12+
- $default-branch
13+
workflow_dispatch:
14+
15+
permissions:
16+
id-token: write
17+
attestations: write
18+
contents: write
19+
packages: write
20+
21+
jobs:
22+
check-release-needed:
23+
runs-on: ubuntu-latest
24+
outputs:
25+
release_needed: ${{ steps.create_release_needed.outputs.release_needed }}
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
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' }}
31+
32+
- name: Set release needed
33+
id: create_release_needed
34+
run: |
35+
last_tag=$(git describe --tags --abbrev=0 --always)
36+
release_needed="false"
37+
for file in $(git diff ${last_tag}..HEAD --name-only); do
38+
if [[ $file = "src/"* ]] || [[ $file = "data/"* ]] || [[ $file = "lib/"* ]] || [[ $file = "resources/"* ]] || [[ $file = "images/"* ]]; then
39+
release_needed="true"
40+
break
41+
fi
42+
done
43+
echo "release_needed=$release_needed" >> $GITHUB_OUTPUT
44+
45+
46+
call-workflow:
47+
needs: check-release-needed
48+
strategy:
49+
matrix:
50+
josm-revision: ["", "r19044"]
51+
uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v3
52+
with:
53+
josm-revision: ${{ matrix.josm-revision }}
54+
perform-revision-tagging: ${{ matrix.josm-revision == 'r19044' && needs.check-release-needed.outputs.release_needed == 'true' }}
55+
secrets: inherit
56+

.github/workflows/gradle.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

build.gradle

Lines changed: 0 additions & 27 deletions
This file was deleted.

build.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<project name="PicLayer" default="dist" basedir=".">
3-
4-
<!-- edit the properties of this plugin in the file `gradle.properties` -->
5-
<property file="${basedir}/gradle.properties"/>
6-
7-
<property name="josm" location="../../core/dist/josm-custom.jar"/>
8-
<property name="plugin.dist.dir" value="../../dist"/>
9-
10-
<!-- ** include targets that all plugins have in common ** -->
11-
<import file="../build-common.xml"/>
12-
3+
<property name="plugin.main.version" value="19044"/>
4+
<property name="plugin.author" value="Tomasz Stelmach"/>
5+
<property name="plugin.class" value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
6+
<property name="plugin.description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
7+
<property name="plugin.icon" value="images/layericon.png"/>
8+
<property name="plugin.link" value="https://josm.openstreetmap.de/wiki/Help/Plugin/PicLayer"/>
9+
<property name="plugin.canloadatruntime" value="true"/>
10+
<!-- ** include targets that all plugins have in common ** -->
11+
<import file="../build-common.xml"/>
1312
</project>

gradle.properties

Lines changed: 0 additions & 8 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

-42.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 8 deletions
This file was deleted.

gradlew

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)