Skip to content

Commit 3ee453f

Browse files
committed
Add pom and github workflow for auto releases
Signed-off-by: Taylor Smock <tsmock@meta.com>
1 parent 9645c88 commit 3ee453f

4 files changed

Lines changed: 68 additions & 89 deletions

File tree

.github/workflows/ant.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ jobs:
5151
uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v3
5252
with:
5353
josm-revision: ${{ matrix.josm-revision }}
54-
perform-revision-tagging: ${{ matrix.josm-revision == 'r19044' && needs.check-release-needed.outputs.release_needed == 'true' }}
54+
perform-revision-tagging: ${{ github.repository == 'JOSM/ShapeTools' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' && matrix.josm-revision == 'r19044' }}
5555
secrets: inherit
56-
56+
permissions:
57+
attestations: write
58+
checks: write
59+
contents: write
60+
deployments: write
61+
id-token: write

build.xml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<project name="ShapeTools" default="dist" basedir=".">
3-
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
4-
<property name="plugin.main.version" value="19044"/>
5-
6-
<property name="plugin.author" value="Antochi Adrian and Trifan Adrian"/>
7-
<property name="plugin.class" value="org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin"/>
8-
<property name="plugin.description" value="Gives user more tools that facilitate aligning and rotation of buildings."/>
9-
<property name="plugin.icon" value="images/shapeToolsIcon.png"/>
10-
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools"/>
11-
12-
<target name="additional-manifest">
13-
<manifest file="MANIFEST" mode="update">
14-
<attribute name="12636_Plugin-Url" value="v1.2.3;https://github.com/JOSM/ShapeTools/releases/download/v1.2.3/ShapeTools.jar" />
15-
<attribute name="14153_Plugin-Url" value="v1.2.4;https://github.com/JOSM/ShapeTools/releases/download/v1.2.4/ShapeTools.jar" />
16-
<attribute name="17896_Plugin-Url" value="v1.2.5;https://github.com/JOSM/ShapeTools/releases/download/v1.2.5/ShapeTools.jar" />
17-
<attribute name="18221_Plugin-Url" value="v1.2.7;https://github.com/JOSM/ShapeTools/releases/download/v1.2.7/ShapeTools.jar" />
18-
</manifest>
19-
</target>
20-
21-
<!-- ** include targets that all plugins have in common ** -->
22-
<import file="../build-common.xml"/>
3+
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
4+
<property name="plugin.main.version" value="19044"/>
5+
<property name="plugin.author" value="Antochi Adrian and Trifan Adrian"/>
6+
<property name="plugin.class" value="org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin"/>
7+
<property name="plugin.description" value="Gives user more tools that facilitate aligning and rotation of buildings."/>
8+
<property name="plugin.icon" value="images/shapeToolsIcon.png"/>
9+
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools"/>
10+
<target name="additional-manifest">
11+
<manifest file="MANIFEST" mode="update">
12+
<attribute name="12636_Plugin-Url" value="v1.2.3;https://github.com/JOSM/ShapeTools/releases/download/v1.2.3/ShapeTools.jar"/>
13+
<attribute name="14153_Plugin-Url" value="v1.2.4;https://github.com/JOSM/ShapeTools/releases/download/v1.2.4/ShapeTools.jar"/>
14+
<attribute name="17896_Plugin-Url" value="v1.2.5;https://github.com/JOSM/ShapeTools/releases/download/v1.2.5/ShapeTools.jar"/>
15+
<attribute name="18221_Plugin-Url" value="v1.2.7;https://github.com/JOSM/ShapeTools/releases/download/v1.2.7/ShapeTools.jar"/>
16+
</manifest>
17+
</target>
18+
<!-- ** include targets that all plugins have in common ** -->
19+
<import file="../build-common.xml"/>
2320
</project>

nbproject/project.xml

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

pom.xml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?xml version="1.0"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>org.openstreetmap.josm.plugins</groupId>
6+
<artifactId>plugin-root</artifactId>
7+
<version>SNAPSHOT</version>
8+
</parent>
9+
<artifactId>ShapeTools</artifactId>
10+
<url>${plugin.link}</url>
11+
<developers>
12+
<developer>
13+
<name>Antochi Adrian</name>
14+
</developer>
15+
<developer>
16+
<name>Trifan Adrian</name>
17+
</developer>
18+
</developers>
19+
<properties>
20+
<plugin.src.dir>src</plugin.src.dir>
21+
<plugin.main.version>19044</plugin.main.version>
22+
<plugin.author>Antochi Adrian and Trifan Adrian</plugin.author>
23+
<plugin.class>org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin</plugin.class>
24+
<plugin.description>Gives user more tools that facilitate aligning and rotation of buildings.</plugin.description>
25+
<plugin.icon>images/shapeToolsIcon.png</plugin.icon>
26+
<plugin.link>https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools</plugin.link>
27+
</properties>
28+
<build>
29+
<plugins>
30+
<plugin>
31+
<groupId>org.apache.maven.plugins</groupId>
32+
<artifactId>maven-jar-plugin</artifactId>
33+
<configuration>
34+
<archive>
35+
<manifestEntries>
36+
<Plugin-Link>${plugin.link}</Plugin-Link>
37+
<Plugin-Icon>${plugin.icon}</Plugin-Icon>
38+
</manifestEntries>
39+
</archive>
40+
</configuration>
41+
</plugin>
42+
</plugins>
43+
</build>
44+
</project>

0 commit comments

Comments
 (0)