forked from lf-lang/epoch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
267 lines (231 loc) · 10.6 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- See https://github.com/xtext/maven-xtext-example
and https://www.eclipse.org/Xtext/documentation/350_continuous_integration.html
-->
<modelVersion>4.0.0</modelVersion>
<groupId>org.lflang</groupId>
<artifactId>lf</artifactId>
<version>0.3.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Lingua Franca</name>
<properties>
<!-- Version Properties -->
<!-- Sync with build.gradle -->
<commonsCliVersion>1.4</commonsCliVersion>
<!-- Note that this version is tied to our version of Gradle -->
<kotlinVersion>1.6.20</kotlinVersion>
<!-- Eclipse specific components -->
<!-- Important: Any version specified for these plugins must be available via the update sites listed in the target platform definition. If not, the Epoch build will fail! You can find the target platform definition in org.lflang.targetplatform/org.lflang.targetplatform.target. Changes to the target platform should also be transferred to the oomph setup (oomph/LinguaFranca.setup). -->
<xtextVersion>2.27.0</xtextVersion>
<lsp4jVersion>0.14.0</lsp4jVersion> <!-- This plugin is provided by Xtext -->
<mwe2LaunchVersion>2.13.0</mwe2LaunchVersion> <!-- This plugin is provided by Eclipse, not Xtext -->
<!-- Tycho version used by Maven (Eclipse specific build support)-->
<tychoVersion>2.6.0</tychoVersion>
<!-- Maven only properties -->
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<execMavenPluginVersion>3.0.0</execMavenPluginVersion>
<!-- Non-version properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tycho.disableP2Mirrors>true</tycho.disableP2Mirrors>
</properties>
<profiles>
<profile>
<id>product</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>org.lflang</module>
<module>org.lflang.ui</module>
<!-- Eclipse Product -->
<module>org.lflang.sdk</module>
<module>org.lflang.updatesite</module>
<module>org.lflang.product</module>
<module>org.lflang.rca</module>
<module>org.lflang.targetplatform</module>
</modules>
</profile>
<profile>
<id>test</id>
<modules>
<module>org.lflang</module>
<module>org.lflang.ui</module>
<!-- Test -->
<module>org.lflang.ui.tests</module>
<module>org.lflang.targetplatform</module>
</modules>
</profile>
</profiles>
<pluginRepositories>
<pluginRepository>
<id>tycho-staged</id>
<url>https://oss.sonatype.org/content/repositories/orgeclipsetycho-1070</url>
</pluginRepository>
</pluginRepositories>
<build>
<pluginManagement>
<plugins>
<!-- This plugin sets the version of the current project and child projects with the same version, and updates references as necessary.-->
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
<version>${tychoVersion}</version>
</plugin>
<!-- This plugin helps finding the latest plugin or dependency versions for your modules. Open up the terminal and execute this command to find the plugin versions you have to update:
mvn versions:display-plugin-updates -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<!-- xtend-maven-plugin is in pluginManagement instead of in plugins
so that it doesn't run before the exec-maven-plugin's *.mwe2 gen; this way
we can list it after. -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlinVersion}</version>
<executions>
<execution>
<id>kotlin-compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<srcDirs>
<sourceDir>${project.basedir}/src</sourceDir>
<sourceDir>${project.basedir}/src-gen</sourceDir>
<sourceDir>${project.basedir}/xtend-gen</sourceDir>
</srcDirs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tychoVersion}</version>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
</execution>
</executions>
</plugin>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>17</release>
</configuration>
</plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>gen-clean</id>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>${basedir}/xtend-gen</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.7.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
<version>${tychoVersion}</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tychoVersion}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tychoVersion}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<argLine>-ea</argLine>
<includes>
<include>**/Test*.java</include>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tychoVersion}</version>
<configuration>
<!-- See https://www.eclipse.org/tycho/sitedocs/target-platform-configuration/target-platform-configuration-mojo.html#pomDependencies -->
<!-- This puts the kotlin osgi bundle into the target platform. -->
<pomDependencies>consider</pomDependencies>
<target>
<artifact>
<groupId>org.lflang</groupId>
<artifactId>org.lflang.targetplatform</artifactId>
<version>${project.version}</version>
</artifact>
</target>
<executionEnvironment>JavaSE-17</executionEnvironment>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</project>