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>2.4-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>
17 Demonstration of DukeScript rendering technology.
18 Plus old, good, simple and entertaining game.
19 Improve your coding skills by playing a game and
20 meanwhile learn what a rendering technology of the
21 future is going to look like. Learn to use DukeScript:
22 Write once, display (and deploy) anywhere!
24 <url>http://html.java.net/</url>
26 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27 <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
28 <netbeans.compile.on.save>none</netbeans.compile.on.save>
29 <bck2brwsr.obfuscationlevel>FULL</bck2brwsr.obfuscationlevel>
30 <teavm.debug>false</teavm.debug>
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-compiler-plugin</artifactId>
37 <version>2.3.2</version>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-jar-plugin</artifactId>
46 <version>2.4</version>
50 <mainClass>${project.mainclass}</mainClass>
51 <addClasspath>true</addClasspath>
52 <classpathPrefix>lib/</classpathPrefix>
58 <groupId>org.codehaus.mojo</groupId>
59 <artifactId>exec-maven-plugin</artifactId>
60 <version>1.2.1</version>
64 <key>browser.rootdir</key>
65 <value>${basedir}/src/main/webapp/</value>
68 <mainClass>${project.mainclass}</mainClass>
75 <groupId>org.netbeans.html</groupId>
76 <artifactId>net.java.html.json</artifactId>
77 <version>${net.java.html.version}</version>
80 <groupId>org.netbeans.html</groupId>
81 <artifactId>net.java.html.boot</artifactId>
82 <version>${net.java.html.version}</version>
85 <groupId>org.netbeans.html</groupId>
86 <artifactId>net.java.html</artifactId>
87 <version>${net.java.html.version}</version>
90 <groupId>org.netbeans.html</groupId>
91 <artifactId>net.java.html.sound</artifactId>
92 <version>${net.java.html.version}</version>
95 <groupId>org.netbeans.html</groupId>
96 <artifactId>ko4j</artifactId>
97 <version>${net.java.html.version}</version>
100 <groupId>org.netbeans.html</groupId>
101 <artifactId>nbrwsr</artifactId>
102 <version>${nb.html.version}</version>
103 <scope>provided</scope>
106 <groupId>com.oracle</groupId>
107 <artifactId>javafx</artifactId>
110 <groupId>org.netbeans.html</groupId>
111 <artifactId>net.java.html.boot</artifactId>
114 <groupId>org.netbeans.html</groupId>
115 <artifactId>net.java.html.boot.fx</artifactId>
120 <groupId>org.testng</groupId>
121 <artifactId>testng</artifactId>
122 <version>6.7</version>
130 <activeByDefault>true</activeByDefault>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-jar-plugin</artifactId>
137 <version>2.4</version>
141 <mainClass>${project.mainclass}</mainClass>
142 <addClasspath>true</addClasspath>
143 <classpathPrefix>lib/</classpathPrefix>
149 <artifactId>maven-assembly-plugin</artifactId>
150 <version>2.4</version>
153 <id>distro-assembly</id>
154 <phase>package</phase>
160 <descriptor>src/main/assembly/html.java.net.xml</descriptor>
170 <groupId>org.netbeans.html</groupId>
171 <artifactId>net.java.html.boot.fx</artifactId>
172 <version>${net.java.html.version}</version>
173 <scope>runtime</scope>
181 <value>bck2brwsr</value>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-jar-plugin</artifactId>
190 <version>2.4</version>
194 <mainClass>${project.mainclass}</mainClass>
195 <addClasspath>true</addClasspath>
196 <classpathPrefix>lib/</classpathPrefix>
202 <groupId>org.apidesign.bck2brwsr</groupId>
203 <artifactId>bck2brwsr-maven-plugin</artifactId>
204 <version>${bck2brwsr.version}</version>
214 <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
215 <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
216 <startpage>index.html</startpage>
217 <classPathPrefix>lib</classPathPrefix>
218 <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
220 <export>org.apidesign.demo.minesweeper.MinesModel</export>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-compiler-plugin</artifactId>
229 <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
234 <artifactId>maven-assembly-plugin</artifactId>
235 <version>2.4</version>
238 <id>distro-assembly</id>
239 <phase>package</phase>
245 <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
255 <groupId>org.apidesign.bck2brwsr</groupId>
256 <artifactId>emul</artifactId>
257 <version>${bck2brwsr.version}</version>
258 <classifier>rt</classifier>
261 <groupId>org.netbeans.html</groupId>
262 <artifactId>net.java.html.boot</artifactId>
263 <version>${net.java.html.version}</version>
266 <artifactId>asm</artifactId>
267 <groupId>org.ow2.asm</groupId>
272 <groupId>org.apidesign.bck2brwsr</groupId>
273 <artifactId>ko-bck2brwsr</artifactId>
274 <version>${bck2brwsr.version}</version>
275 <scope>runtime</scope>
282 <platform.version>4.1.1.4</platform.version>
283 <android.plugin.version>3.7.0</android.plugin.version>
288 <groupId>com.google.android</groupId>
289 <artifactId>android</artifactId>
290 <version>${platform.version}</version>
291 <scope>provided</scope>
294 <groupId>com.dukescript.presenters</groupId>
295 <artifactId>android</artifactId>
296 <version>0.8.1</version>
300 <groupId>org.netbeans.html</groupId>
301 <artifactId>ko-ws-tyrus</artifactId>
302 <version>${net.java.html.version}</version>
305 <artifactId>org.json-osgi</artifactId>
306 <groupId>de.twentyeleven.skysail</groupId>
314 <groupId>com.filmon.maven</groupId>
315 <artifactId>image-maven-plugin</artifactId>
316 <version>1.1</version>
323 <outputDirectory>target/res</outputDirectory>
326 <source>src/main/icons/DukeSweeper.png</source>
327 <destination>drawable-hdpi/ic_launcher.png</destination>
331 <source>src/main/icons/DukeSweeper.png</source>
332 <destination>drawable-mdpi/ic_launcher.png</destination>
336 <source>src/main/icons/DukeSweeper.png</source>
337 <destination>drawable-xhdpi/ic_launcher.png</destination>
341 <source>src/main/icons/DukeSweeper.png</source>
342 <destination>drawable-xxhdpi/ic_launcher.png</destination>
351 <groupId>com.jayway.maven.plugins.android.generation2</groupId>
352 <artifactId>android-maven-plugin</artifactId>
353 <version>${android.plugin.version}</version>
354 <extensions>true</extensions>
356 <resourceDirectory>target/res</resourceDirectory>
357 <classifier>apk</classifier>
358 <attachJar>false</attachJar>
359 <apkDebug>debug</apkDebug>
360 <assetsDirectory>src/main/webapp</assetsDirectory>
362 <platform>19</platform>
366 <metaInclude>services/org.netbeans.**</metaInclude>
369 <extractDuplicates>true</extractDuplicates>
370 <file>${project.build.directory}/${project.build.finalName}.apk</file>
383 <groupId>org.apache.maven.plugins</groupId>
384 <artifactId>maven-install-plugin</artifactId>
385 <version>2.5.1</version>
387 <groupId>${project.groupId}</groupId>
388 <artifactId>${project.artifactId}</artifactId>
389 <version>${project.version}</version>
390 <file>${project.build.directory}/${project.build.finalName}.apk</file>
391 <packaging>apk</packaging>
397 <phase>install</phase>
399 <goal>install-file</goal>
412 <groupId>org.teavm</groupId>
413 <artifactId>teavm-maven-plugin</artifactId>
414 <version>${teavm.version}</version>
417 <groupId>org.teavm</groupId>
418 <artifactId>teavm-classlib</artifactId>
419 <version>${teavm.version}</version>
421 <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
422 Also there are some little patches to JCL emulation, that are required to pass TCK -->
424 <groupId>org.teavm</groupId>
425 <artifactId>teavm-html4j</artifactId>
426 <version>${teavm.version}</version>
431 <id>generate-minesweeper</id>
433 <goal>build-javascript</goal>
435 <phase>process-classes</phase>
437 <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
438 <debugInformationGenerated>${teavm.debug}</debugInformationGenerated>
439 <sourceMapsGenerated>${teavm.debug}</sourceMapsGenerated>
440 <sourceFilesCopied>${teavm.debug}</sourceFilesCopied>
441 <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
442 <minifying>false</minifying>
443 <!-- Don't include main page - we created it by ourselves -->
444 <mainPageIncluded>false</mainPageIncluded>
445 <!-- Merge runtime.js instead of putting as a separate file -->
446 <runtime>MERGED</runtime>
447 <!-- Name of the generated file -->
448 <targetFileName>bck2brwsr.js</targetFileName>
449 <targetDirectory>${project.build.directory}/teavm</targetDirectory>
450 <!-- This transformer adds null checks before virtual calls. It is not included
451 by default as we don't always need these null checks -->
453 <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
460 <artifactId>maven-assembly-plugin</artifactId>
461 <version>2.4</version>
464 <id>distro-assembly</id>
465 <phase>package</phase>
471 <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
478 <groupId>org.apidesign.bck2brwsr</groupId>
479 <artifactId>bck2brwsr-maven-plugin</artifactId>
480 <version>${bck2brwsr.version}</version>
489 <directory>${project.build.directory}/${project.build.finalName}-teabrwsr/public_html/</directory>
490 <startpage>index.html</startpage>
500 <groupId>com.dukescript.presenters</groupId>
501 <artifactId>ios</artifactId>
502 <version>0.8.1</version>
503 <scope>runtime</scope>
509 <groupId>com.filmon.maven</groupId>
510 <artifactId>image-maven-plugin</artifactId>
511 <version>1.1</version>
518 <outputDirectory>target/images</outputDirectory>
521 <source>src/main/icons/DukeSweeper.png</source>
522 <destination>Icon.png</destination>
526 <source>src/main/icons/DukeSweeper.png</source>
527 <destination>Icon@2.png</destination>
531 <source>src/main/icons/DukeSweeper.png</source>
532 <destination>Icon-60.png</destination>
536 <source>src/main/icons/DukeSweeper.png</source>
537 <destination>Icon-60@2.png</destination>
541 <source>src/main/icons/DukeSweeper.png</source>
542 <destination>Icon-72.png</destination>
546 <source>src/main/icons/DukeSweeper.png</source>
547 <destination>Icon-76.png</destination>
556 <groupId>org.robovm</groupId>
557 <artifactId>robovm-maven-plugin</artifactId>
558 <version>1.2.0</version>
561 <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
563 <pattern>java.util.logging.ConsoleHandler</pattern>
564 <pattern>java.util.logging.SimpleFormatter</pattern>
566 <executableName>MineSweeper</executableName>
568 <resource>src/main/webapp/pages</resource>
570 <targetPath>/</targetPath>
571 <directory>src/main/icons/</directory>
573 <include>Default*.png</include>
577 <targetPath>/</targetPath>
578 <directory>target/images/</directory>
580 <include>*.png</include>
584 <iosInfoPList>Info.plist.xml</iosInfoPList>
586 <includeJFX>false</includeJFX>
588 <iosSignIdentity>iPhone Distribution</iosSignIdentity>
589 <iosProvisioningProfile>9728E91B-1BB7-40D6-8922-3DD3BA5E6ECD</iosProvisioningProfile>
600 <groupId>org.netbeans.html</groupId>
601 <artifactId>nbrwsr</artifactId>
602 <version>${nb.html.version}</version>
603 <scope>compile</scope>
609 <groupId>org.apache.maven.plugins</groupId>
610 <artifactId>maven-resources-plugin</artifactId>
611 <version>2.6</version>
614 <id>include-webpages</id>
616 <goal>copy-resources</goal>
618 <phase>process-resources</phase>
620 <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
621 <overwrite>true</overwrite>
624 <directory>src/main/webapp/pages</directory>
632 <groupId>org.codehaus.mojo</groupId>
633 <artifactId>nbm-maven-plugin</artifactId>
634 <version>3.13</version>
635 <extensions>true</extensions>
638 <id>default-manifest</id>
639 <phase>process-classes</phase>
641 <goal>manifest</goal>
644 <useOSGiDependencies>true</useOSGiDependencies>
645 <brandingToken>html4j4nb</brandingToken>
646 <cluster>extra</cluster>
647 <verifyIntegrity>false</verifyIntegrity>
652 <phase>package</phase>
657 <useOSGiDependencies>true</useOSGiDependencies>
658 <cluster>extra</cluster>
659 <verifyIntegrity>false</verifyIntegrity>
664 <useOSGiDependencies>true</useOSGiDependencies>
665 <brandingToken>html4j4nb</brandingToken>
666 <cluster>html4j4nb</cluster>
667 <verifyIntegrity>false</verifyIntegrity>
672 <groupId>org.apache.maven.plugins</groupId>
673 <artifactId>maven-jar-plugin</artifactId>
675 <!-- to have the jar plugin pickup the nbm generated manifest -->
676 <useDefaultManifestFile>true</useDefaultManifestFile>