File tree 3 files changed +104
-4
lines changed 3 files changed +104
-4
lines changed Original file line number Diff line number Diff line change
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
+ checks : write
21
+
22
+ jobs :
23
+ check-release-needed :
24
+ runs-on : ubuntu-latest
25
+ outputs :
26
+ release_needed : ${{ steps.create_release_needed.outputs.release_needed }}
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v4
30
+ with :
31
+ fetch-depth : ${{ (github.repository == 'JOSM/Building-Generalization' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request') && '0' || '1' }}
32
+
33
+ - name : Set release needed
34
+ id : create_release_needed
35
+ run : |
36
+ last_tag=$(git describe --tags --abbrev=0 --always)
37
+ release_needed="false"
38
+ for file in $(git diff ${last_tag}..HEAD --name-only); do
39
+ if [[ $file = "src/"* ]] || [[ $file = "data/*" ]] || [[ $file = "lib/*" ]] || [[ $file = "resources/*" ]] || [[ $file = "images/*" ]]; then
40
+ release_needed="true"
41
+ break
42
+ fi
43
+ done
44
+ echo "release_needed=$release_needed" >> $GITHUB_OUTPUT
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 : ${{ github.repository == 'JOSM/Building-Generalization' && github.ref_type == 'branch' && github.ref_name == 'master' && github.event_name != 'schedule' && github.event_name != 'pull_request' && matrix.josm-revision == 'r19044' }}
55
+ plugin-jar-name : " continuosDownload"
56
+ secrets : inherit
57
+ permissions :
58
+ attestations : write
59
+ checks : write
60
+ contents : write
61
+ deployments : write
62
+ id-token : write
Original file line number Diff line number Diff line change 4
4
<!-- enter the SVN commit message -->
5
5
<property name =" commit.message" value =" BuildingGeneralization: update for compatibility with JOSM r17896" />
6
6
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
7
- <property name =" plugin.main.version" value =" 17896 " />
7
+ <property name =" plugin.main.version" value =" 19044 " />
8
8
9
9
<!-- Configure these properties (replace "..." accordingly).
10
10
-->
17
17
<!-- <property name="plugin.requires" value="..."/>-->
18
18
<!-- <property name="plugin.stage" value="..."/>-->
19
19
20
- <property name =" josm" location =" ../../core/dist/josm-custom.jar" />
21
- <property name =" plugin.dist.dir" value =" ../../dist" />
22
-
23
20
<!-- ** include targets that all plugins have in common ** -->
24
21
<import file =" ../build-common.xml" />
25
22
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ 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 >Building-Generalization</artifactId >
10
+
11
+ <url >${plugin.link} </url >
12
+ <developers >
13
+ <developer >
14
+ <name >Rotariu Anamaria</name >
15
+ </developer >
16
+ </developers >
17
+ <properties >
18
+ <plugin .src.dir>src</plugin .src.dir>
19
+ <plugin .main.version>19044</plugin .main.version>
20
+ <plugin .author>Rotariu Anamaria</plugin .author>
21
+ <plugin .class>org.openstreetmap.josm.plugins.buildinggeneralization.BuildingGeneralizationPlugin</plugin .class>
22
+ <plugin .description>Allows the user to correct angle of buildings to 90 degrees, and aligns all loaded buildings to nearest road.</plugin .description>
23
+ <plugin .icon>images/dialogs/rsz_3untitled.png</plugin .icon>
24
+ </properties >
25
+ <build >
26
+ <plugins >
27
+ <plugin >
28
+ <groupId >org.apache.maven.plugins</groupId >
29
+ <artifactId >maven-jar-plugin</artifactId >
30
+ <configuration >
31
+ <archive >
32
+ <manifestEntries >
33
+ <Plugin-Link >${plugin.link} </Plugin-Link >
34
+ <Plugin-Icon >${plugin.icon} </Plugin-Icon >
35
+ </manifestEntries >
36
+ </archive >
37
+ </configuration >
38
+ </plugin >
39
+ </plugins >
40
+ </build >
41
+ </project >
You can’t perform that action at this time.
0 commit comments