Skip to content

Commit

Permalink
Add pom and github workflow for auto releases
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Jan 30, 2025
1 parent 9645c88 commit 3ee453f
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 89 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ jobs:
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' }}
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' }}
secrets: inherit

permissions:
attestations: write
checks: write
contents: write
deployments: write
id-token: write
37 changes: 17 additions & 20 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="ShapeTools" default="dist" basedir=".">
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="19044"/>

<property name="plugin.author" value="Antochi Adrian and Trifan Adrian"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin"/>
<property name="plugin.description" value="Gives user more tools that facilitate aligning and rotation of buildings."/>
<property name="plugin.icon" value="images/shapeToolsIcon.png"/>
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools"/>

<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="12636_Plugin-Url" value="v1.2.3;https://github.com/JOSM/ShapeTools/releases/download/v1.2.3/ShapeTools.jar" />
<attribute name="14153_Plugin-Url" value="v1.2.4;https://github.com/JOSM/ShapeTools/releases/download/v1.2.4/ShapeTools.jar" />
<attribute name="17896_Plugin-Url" value="v1.2.5;https://github.com/JOSM/ShapeTools/releases/download/v1.2.5/ShapeTools.jar" />
<attribute name="18221_Plugin-Url" value="v1.2.7;https://github.com/JOSM/ShapeTools/releases/download/v1.2.7/ShapeTools.jar" />
</manifest>
</target>

<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="19044"/>
<property name="plugin.author" value="Antochi Adrian and Trifan Adrian"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin"/>
<property name="plugin.description" value="Gives user more tools that facilitate aligning and rotation of buildings."/>
<property name="plugin.icon" value="images/shapeToolsIcon.png"/>
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools"/>
<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="12636_Plugin-Url" value="v1.2.3;https://github.com/JOSM/ShapeTools/releases/download/v1.2.3/ShapeTools.jar"/>
<attribute name="14153_Plugin-Url" value="v1.2.4;https://github.com/JOSM/ShapeTools/releases/download/v1.2.4/ShapeTools.jar"/>
<attribute name="17896_Plugin-Url" value="v1.2.5;https://github.com/JOSM/ShapeTools/releases/download/v1.2.5/ShapeTools.jar"/>
<attribute name="18221_Plugin-Url" value="v1.2.7;https://github.com/JOSM/ShapeTools/releases/download/v1.2.7/ShapeTools.jar"/>
</manifest>
</target>
<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
</project>
67 changes: 0 additions & 67 deletions nbproject/project.xml

This file was deleted.

44 changes: 44 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0"?>
<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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openstreetmap.josm.plugins</groupId>
<artifactId>plugin-root</artifactId>
<version>SNAPSHOT</version>
</parent>
<artifactId>ShapeTools</artifactId>
<url>${plugin.link}</url>
<developers>
<developer>
<name>Antochi Adrian</name>
</developer>
<developer>
<name>Trifan Adrian</name>
</developer>
</developers>
<properties>
<plugin.src.dir>src</plugin.src.dir>
<plugin.main.version>19044</plugin.main.version>
<plugin.author>Antochi Adrian and Trifan Adrian</plugin.author>
<plugin.class>org.openstreetmap.josm.plugins.shapetools.ShapeToolsPlugin</plugin.class>
<plugin.description>Gives user more tools that facilitate aligning and rotation of buildings.</plugin.description>
<plugin.icon>images/shapeToolsIcon.png</plugin.icon>
<plugin.link>https://wiki.openstreetmap.org/wiki/JOSM/Plugins/ShapeTools</plugin.link>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Plugin-Link>${plugin.link}</Plugin-Link>
<Plugin-Icon>${plugin.icon}</Plugin-Icon>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 3ee453f

Please sign in to comment.