Skip to content

Commit

Permalink
Autorelease and add pom file
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Jan 29, 2025
1 parent 4186fb9 commit eb4e86d
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 52 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/ant-release.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: ${{ (github.repository == 'JOSM/austriaaddresshelper' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request') && '0' || '1' }}
fetch-depth: ${{ (github.repository == 'JOSM/austriaadresshelper' && 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
Expand All @@ -51,5 +51,6 @@ jobs:
uses: JOSM/JOSMPluginAction/.github/workflows/ant.yml@v3
with:
josm-revision: ${{ matrix.josm-revision }}
perform-revision-tagging: false
perform-revision-tagging: ${{ matrix.josm-revision == 'r19044' && needs.check-release-needed.outputs.release_needed == 'true' }}
secrets: inherit

57 changes: 26 additions & 31 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="austriaaddresshelper" default="dist" basedir=".">

<!-- enter the SVN commit message -->
<property name="commit.message" value="Commit message"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="18723"/>

<!-- Configure these properties (replace "..." accordingly).
<!-- enter the SVN commit message -->
<property name="commit.message" value="Commit message"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="19044"/>
<!-- Configure these properties (replace "..." accordingly).
See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
-->
<property name="plugin.author" value="Thomas Konrad"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.austriaaddresshelper.AustriaAddressHelperPlugin"/>
<property name="plugin.description" value="Automatically assigns the address to a selected object in Austria. Data © Österreichisches Adressregister 2017, N 23806/2017."/>
<property name="plugin.icon" value="images/icon.png"/>
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/AustriaAddressHelper"/>
<!--<property name="plugin.early" value="..."/>-->
<!--<property name="plugin.requires" value="..."/>-->
<!--<property name="plugin.stage" value="..."/>-->

<property name="plugin.canloadatruntime" value="true"/>

<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="12735_Plugin-Url" value="v0.6.0;https://github.com/JOSM/austriaaddresshelper/releases/download/v0.6.0/austriaaddresshelper.jar" />
<attribute name="14153_Plugin-Url" value="0.8.1;https://github.com/JOSM/austriaaddresshelper/releases/download/v0.8.1/austriaaddresshelper.jar" />
</manifest>
</target>

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

<target name="installPlugin" depends="clean, dist, install">
<echo>Installed austriaadresshelper plugin</echo>
</target>
<property name="plugin.author" value="Thomas Konrad"/>
<property name="plugin.class" value="org.openstreetmap.josm.plugins.austriaaddresshelper.AustriaAddressHelperPlugin"/>
<property name="plugin.description" value="Automatically assigns the address to a selected object in Austria. Data © Österreichisches Adressregister 2017, N 23806/2017."/>
<property name="plugin.icon" value="images/icon.png"/>
<property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/AustriaAddressHelper"/>
<!--<property name="plugin.early" value="..."/>-->
<!--<property name="plugin.requires" value="..."/>-->
<!--<property name="plugin.stage" value="..."/>-->
<property name="plugin.canloadatruntime" value="true"/>
<target name="additional-manifest">
<manifest file="MANIFEST" mode="update">
<attribute name="12735_Plugin-Url" value="v0.6.0;https://github.com/JOSM/austriaaddresshelper/releases/download/v0.6.0/austriaaddresshelper.jar"/>
<attribute name="14153_Plugin-Url" value="0.8.1;https://github.com/JOSM/austriaaddresshelper/releases/download/v0.8.1/austriaaddresshelper.jar"/>
<attribute name="18723_Plugin-Url" value="0.8.4;https://github.com/JOSM/austriaaddresshelper/releases/download/v0.8.4/austriaaddresshelper.jar"/>
</manifest>
</target>
<!-- ** include targets that all plugins have in common ** -->
<import file="../build-common.xml"/>
<target name="installPlugin" depends="clean, dist, install">
<echo>Installed austriaadresshelper plugin</echo>
</target>
</project>
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>austriaadresshelper</artifactId>
<url>${plugin.link}</url>
<developers>
<developer>
<name>Thomas Konrad</name>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<plugin.src.dir>src</plugin.src.dir>
<plugin.main.version>19044</plugin.main.version>
<plugin.author>Thomas Konrad</plugin.author>
<plugin.class>org.openstreetmap.josm.plugins.austriaaddresshelper.AustriaAddressHelperPlugin</plugin.class>
<plugin.description>Automatically assigns the address to a selected object in Austria. Data &#xA9; &#xD6;sterreichisches Adressregister 2017, N 23806/2017.</plugin.description>
<plugin.icon>images/icon.png</plugin.icon>
<plugin.link>https://wiki.openstreetmap.org/wiki/JOSM/Plugins/AustriaAddressHelper</plugin.link>
<plugin.canloadatruntime>true</plugin.canloadatruntime>
</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>
<Plugin-Canloadatruntime>${plugin.canloadatruntime}</Plugin-Canloadatruntime>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit eb4e86d

Please sign in to comment.