-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
213 lines (209 loc) · 7.74 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?xml version="1.0" encoding="UTF-8"?>
<!--
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.revelc.code</groupId>
<artifactId>revelc</artifactId>
<version>6</version>
<relativePath />
</parent>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>jsdt-core</artifactId>
<version>3.5.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<name>Eclipse JSDT Core Bundle</name>
<description>Repackaging of Eclipse JSDT bundled for Maven Central</description>
<url>https://github.com/revelc/jsdt-core</url>
<inceptionYear>2017</inceptionYear>
<licenses>
<license>
<name>EPL-2.0</name>
<url>https://www.eclipse.org/legal/epl-v20.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Christopher Tubbs</name>
</developer>
<developer>
<name>Jeremy Landis</name>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/revelc/jsdt-core.git</connection>
<developerConnection>scm:git:git@github.com/revelc/jsdt-core.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/revelc/jsdt-core</url>
</scm>
<properties>
<eclipse-repo.url>https://download.eclipse.org/releases/2024-06</eclipse-repo.url>
<licenseText><![CDATA[
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
]]></licenseText>
<maven.compiler.release>17</maven.compiler.release>
<!-- Source has to be skipped with tycho as it is building the source -->
<maven.source.skip>true</maven.source.skip>
<mdep.analyze.skip>true</mdep.analyze.skip>
<!-- rat plugin is no good at validating EPL headers out of the box -->
<rat.skip>true</rat.skip>
<revelc.min-build-mvn>3.9.0</revelc.min-build-mvn>
<tychoVersion>4.0.9</tychoVersion>
</properties>
<repositories>
<repository>
<id>eclipse</id>
<url>${eclipse-repo.url}</url>
<layout>p2</layout>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<goals>clean deploy</goals>
<preparationGoals>clean scm:add scm:checkin -Dincludes=META-INF/MANIFEST.MF -Dmessage="[maven-release-plugin] Increment Bundle-Version for release" -DpushChanges=false</preparationGoals>
<completionGoals>clean scm:add scm:checkin -Dincludes=META-INF/MANIFEST.MF -Dmessage="[maven-release-plugin] Increment Bundle-Version for snapshot" -DpushChanges=false</completionGoals>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tychoVersion}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tychoVersion}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tychoVersion}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tychoVersion}</version>
</plugin>
<plugin>
<groupId>io.github.floverfelt</groupId>
<artifactId>find-and-replace-maven-plugin</artifactId>
<version>1.2.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>io.github.floverfelt</groupId>
<artifactId>find-and-replace-maven-plugin</artifactId>
<executions>
<execution>
<id>update-manifest-version-from-pom</id>
<goals>
<goal>find-and-replace</goal>
</goals>
<phase>pre-clean</phase>
<configuration>
<replacementType>file-contents</replacementType>
<baseDir>META-INF</baseDir>
<findRegex>Bundle-Version:.*</findRegex>
<replaceValue>Bundle-Version: ${project.version}</replaceValue>
</configuration>
</execution>
<execution>
<id>version-with-snapshot-update-manifest</id>
<goals>
<goal>find-and-replace</goal>
</goals>
<phase>pre-clean</phase>
<configuration>
<replacementType>file-contents</replacementType>
<baseDir>META-INF</baseDir>
<findRegex>-SNAPSHOT</findRegex>
<replaceValue>.qualifier</replaceValue>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<phase>prepare-package</phase>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<excludes>META-INF/*</excludes>
<includeArtifactIds>org.eclipse.core.runtime,org.eclipse.equinox.common,org.eclipse.equinox.registry,org.eclipse.osgi,org.eclipse.text,org.eclipse.wst.jsdt.core,org.eclipse.wst.common.core,org.eclipse.wst.common.environment,org.eclipse.wst.common.frameworks,org.eclipse.wst.common.project.facet.core,org.eclipse.wst.validation</includeArtifactIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<pomDependencies>consider</pomDependencies>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<configuration>
<useProjectSettings>false</useProjectSettings>
</configuration>
</plugin>
<!-- These plugins are required for all Tycho-based builds -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>