Official teavm version has been uploaded to Maven central. Switching to it.
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
5 <groupId>org.apidesign.demo</groupId>
6 <artifactId>minesweeper</artifactId>
7 <version>1.0-SNAPSHOT</version>
8 <packaging>jar</packaging>
10 <artifactId>demo</artifactId>
11 <groupId>org.apidesign.html</groupId>
12 <version>1.0-SNAPSHOT</version>
15 <name>Mine Sweeper</name>
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 <brwsr.startpage>pages/index.html</brwsr.startpage>
20 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
21 <netbeans.compile.on.save>none</netbeans.compile.on.save>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-compiler-plugin</artifactId>
28 <version>2.3.2</version>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-jar-plugin</artifactId>
37 <version>2.4</version>
41 <mainClass>${project.mainclass}</mainClass>
42 <addClasspath>true</addClasspath>
43 <classpathPrefix>lib/</classpathPrefix>
49 <groupId>org.codehaus.mojo</groupId>
50 <artifactId>exec-maven-plugin</artifactId>
51 <version>1.2.1</version>
55 <key>browser.rootdir</key>
56 <value>${basedir}/src/main/webapp/</value>
59 <mainClass>${project.mainclass}</mainClass>
66 <groupId>org.netbeans.html</groupId>
67 <artifactId>net.java.html.json</artifactId>
68 <version>${net.java.html.version}</version>
71 <groupId>org.netbeans.html</groupId>
72 <artifactId>net.java.html.boot</artifactId>
73 <version>${net.java.html.version}</version>
76 <groupId>org.netbeans.html</groupId>
77 <artifactId>net.java.html.sound</artifactId>
78 <version>${net.java.html.version}</version>
81 <groupId>org.netbeans.html</groupId>
82 <artifactId>ko4j</artifactId>
83 <version>${net.java.html.version}</version>
86 <groupId>org.testng</groupId>
87 <artifactId>testng</artifactId>
88 <version>6.7</version>
96 <activeByDefault>true</activeByDefault>
101 <artifactId>maven-assembly-plugin</artifactId>
102 <version>2.4</version>
105 <id>distro-assembly</id>
106 <phase>package</phase>
112 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
122 <groupId>org.netbeans.html</groupId>
123 <artifactId>net.java.html.boot.fx</artifactId>
124 <version>${net.java.html.version}</version>
125 <scope>runtime</scope>
134 <value>bck2brwsr</value>
140 <groupId>org.apidesign.bck2brwsr</groupId>
141 <artifactId>bck2brwsr-maven-plugin</artifactId>
142 <version>${bck2brwsr.version}</version>
151 <directory>${basedir}/src/main/webapp/</directory>
152 <startpage>${brwsr.startpage}</startpage>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-compiler-plugin</artifactId>
160 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
165 <artifactId>maven-assembly-plugin</artifactId>
166 <version>2.4</version>
169 <id>distro-assembly</id>
170 <phase>package</phase>
176 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
186 <groupId>org.apidesign.bck2brwsr</groupId>
187 <artifactId>emul</artifactId>
188 <version>${bck2brwsr.version}</version>
189 <classifier>rt</classifier>
192 <groupId>org.apidesign.bck2brwsr</groupId>
193 <artifactId>ko-bck2brwsr</artifactId>
194 <version>${bck2brwsr.version}</version>
195 <scope>runtime</scope>
198 <groupId>org.apidesign.bck2brwsr</groupId>
199 <artifactId>vm4brwsr</artifactId>
200 <classifier>js</classifier>
202 <version>${bck2brwsr.version}</version>
203 <scope>provided</scope>
211 <name>android.sdk.path</name>
215 <platform.version>4.1.1.4</platform.version>
216 <android.plugin.version>3.7.0</android.plugin.version>
221 <groupId>com.google.android</groupId>
222 <artifactId>android</artifactId>
223 <version>${platform.version}</version>
224 <scope>provided</scope>
227 <groupId>org.netbeans.html</groupId>
228 <artifactId>ko-ws-tyrus</artifactId>
229 <version>${net.java.html.version}</version>
232 <artifactId>org.json-osgi</artifactId>
233 <groupId>de.twentyeleven.skysail</groupId>
238 <groupId>org.apidesign.html</groupId>
239 <artifactId>dlvkbrwsr</artifactId>
240 <version>0.1-SNAPSHOT</version>
247 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
248 <artifactId>android-maven-plugin</artifactId>
249 <version>${android.plugin.version}</version>
250 <extensions>true</extensions>
252 <classifier>apk</classifier>
253 <attachJar>false</attachJar>
254 <apkDebug>debug</apkDebug>
255 <assetsDirectory>src/main/webapp</assetsDirectory>
257 <platform>16</platform>
261 <metaInclude>services/org.apidesign.**</metaInclude>
264 <file>${project.build.directory}/${project.build.finalName}.apk</file>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-install-plugin</artifactId>
279 <version>2.5.1</version>
281 <groupId>${project.groupId}</groupId>
282 <artifactId>${project.artifactId}</artifactId>
283 <version>${project.version}</version>
284 <file>${project.build.directory}/${project.build.finalName}.apk</file>
285 <packaging>apk</packaging>
291 <phase>install</phase>
293 <goal>install-file</goal>
306 <groupId>org.teavm</groupId>
307 <artifactId>teavm-maven-plugin</artifactId>
308 <version>${teavm.version}</version>
311 <groupId>org.teavm</groupId>
312 <artifactId>teavm-classlib</artifactId>
313 <version>${teavm.version}</version>
315 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
316 Also there are some little patches to JCL emulation, that are required to pass TCK -->
318 <groupId>org.teavm</groupId>
319 <artifactId>teavm-html4j</artifactId>
320 <version>${teavm.version}</version>
325 <id>generate-minesweeper</id>
327 <goal>build-javascript</goal>
329 <phase>process-classes</phase>
331 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
332 <minifying>false</minifying>
334 <!-- This classes (separated with , ; space) will be available through vm.loadClass() -->
335 <html4j.entryPoints>org.apidesign.demo.minesweeper.MainBrwsr</html4j.entryPoints>
337 <!-- Don't include main page - we created it by ourselves -->
338 <mainPageIncluded>false</mainPageIncluded>
339 <!-- Merge runtime.js instead of putting as a separate file -->
340 <runtime>MERGED</runtime>
341 <!-- Name of the generated file -->
342 <targetFileName>bck2brwsr.js</targetFileName>
343 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
344 <!-- This transformer adds null checks before virtual calls. It is not included
345 by default as we don't always need these null checks -->
347 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
354 <artifactId>maven-assembly-plugin</artifactId>
355 <version>2.4</version>
358 <id>distro-assembly</id>
359 <phase>package</phase>
365 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>