minesweeper/pom.xml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 06 Nov 2014 21:59:32 +0100
changeset 229 6e5c2ce01688
parent 223 4ee062b3f5ed
child 231 46827acaac4a
permissions -rw-r--r--
Switching to latest version of brwsrs
jaroslav@189
     1
<?xml version="1.0" encoding="UTF-8"?>
jtulach@63
     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">
jtulach@63
     3
  <modelVersion>4.0.0</modelVersion>
jtulach@63
     4
jtulach@63
     5
  <groupId>org.apidesign.demo</groupId>
jtulach@63
     6
  <artifactId>minesweeper</artifactId>
jtulach@212
     7
  <version>2.4-SNAPSHOT</version>
jtulach@63
     8
  <packaging>jar</packaging>
jtulach@63
     9
  <parent>
jtulach@63
    10
      <artifactId>demo</artifactId>
jtulach@63
    11
      <groupId>org.apidesign.html</groupId>
jtulach@63
    12
      <version>1.0-SNAPSHOT</version>
jtulach@63
    13
  </parent>
jtulach@63
    14
jtulach@63
    15
  <name>Mine Sweeper</name>
jtulach@128
    16
  <description>
jtulach@128
    17
      Demonstration of DukeScript rendering technology.
jtulach@133
    18
      Plus old, good, simple and entertaining game.
jtulach@130
    19
      Improve your coding skills by playing a game and 
jtulach@130
    20
      meanwhile learn what a rendering technology of the
jtulach@130
    21
      future is going to look like. Learn to use DukeScript:
jtulach@130
    22
      Write once, display (and deploy) anywhere!
jtulach@128
    23
  </description>
jtulach@128
    24
  <url>http://html.java.net/</url>
jtulach@63
    25
  <properties>
jtulach@63
    26
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
jtulach@63
    27
    <project.mainclass>org.apidesign.demo.minesweeper.Main</project.mainclass>
jtulach@63
    28
    <netbeans.compile.on.save>none</netbeans.compile.on.save>
jaroslav@160
    29
    <bck2brwsr.obfuscationlevel>FULL</bck2brwsr.obfuscationlevel>
jaroslav@223
    30
    <teavm.debug>false</teavm.debug>
jtulach@63
    31
  </properties>
jtulach@63
    32
  <build>
jtulach@63
    33
      <plugins>
jtulach@63
    34
          <plugin>
jtulach@63
    35
              <groupId>org.apache.maven.plugins</groupId>
jtulach@63
    36
              <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
    37
              <version>2.3.2</version>
jtulach@63
    38
              <configuration>
jtulach@63
    39
                  <source>1.6</source>
jtulach@63
    40
                  <target>1.6</target>
jtulach@63
    41
              </configuration>
jtulach@63
    42
          </plugin>
jtulach@63
    43
          <plugin>
jtulach@120
    44
              <groupId>org.apache.maven.plugins</groupId>
jtulach@120
    45
              <artifactId>maven-jar-plugin</artifactId>
jtulach@120
    46
              <version>2.4</version>
jtulach@120
    47
              <configuration>
jtulach@120
    48
                  <archive>
jtulach@120
    49
                      <manifest>
jtulach@120
    50
                          <mainClass>${project.mainclass}</mainClass>
jtulach@120
    51
                          <addClasspath>true</addClasspath>
jtulach@120
    52
                          <classpathPrefix>lib/</classpathPrefix>
jtulach@120
    53
                      </manifest>
jtulach@120
    54
                  </archive>
jtulach@120
    55
              </configuration>
jtulach@120
    56
          </plugin>
jtulach@120
    57
          <plugin>
jtulach@63
    58
              <groupId>org.codehaus.mojo</groupId>
jtulach@63
    59
              <artifactId>exec-maven-plugin</artifactId>
jtulach@63
    60
              <version>1.2.1</version>
jtulach@63
    61
              <configuration>
jtulach@63
    62
                  <systemProperties>
jtulach@63
    63
                      <systemProperty>
jtulach@63
    64
                          <key>browser.rootdir</key>
jtulach@63
    65
                          <value>${basedir}/src/main/webapp/</value>
jtulach@63
    66
                      </systemProperty>
jtulach@63
    67
                  </systemProperties>
jtulach@63
    68
                  <mainClass>${project.mainclass}</mainClass>
jtulach@63
    69
              </configuration>
jtulach@63
    70
          </plugin>      
jtulach@63
    71
      </plugins>
jtulach@63
    72
  </build>
jtulach@63
    73
  <dependencies>
jtulach@63
    74
    <dependency>
jtulach@63
    75
        <groupId>org.netbeans.html</groupId>
jtulach@63
    76
        <artifactId>net.java.html.json</artifactId>
jtulach@63
    77
        <version>${net.java.html.version}</version>
jtulach@63
    78
    </dependency>
jtulach@63
    79
    <dependency>
jtulach@63
    80
        <groupId>org.netbeans.html</groupId>
jtulach@63
    81
        <artifactId>net.java.html.boot</artifactId>
jtulach@63
    82
        <version>${net.java.html.version}</version>
jtulach@63
    83
    </dependency>
jtulach@63
    84
    <dependency>
jtulach@79
    85
        <groupId>org.netbeans.html</groupId>
jtulach@111
    86
        <artifactId>net.java.html</artifactId>
jtulach@111
    87
        <version>${net.java.html.version}</version>
jtulach@111
    88
    </dependency>
jtulach@111
    89
    <dependency>
jtulach@111
    90
        <groupId>org.netbeans.html</groupId>
jtulach@79
    91
        <artifactId>net.java.html.sound</artifactId>
jtulach@79
    92
        <version>${net.java.html.version}</version>
jtulach@79
    93
    </dependency>
jtulach@79
    94
    <dependency>
jtulach@81
    95
        <groupId>org.netbeans.html</groupId>
jtulach@81
    96
        <artifactId>ko4j</artifactId>
jtulach@81
    97
        <version>${net.java.html.version}</version>
jtulach@81
    98
    </dependency>
jtulach@81
    99
    <dependency>
jtulach@118
   100
      <groupId>org.netbeans.html</groupId>
jtulach@118
   101
      <artifactId>nbrwsr</artifactId>
jtulach@144
   102
      <version>${nb.html.version}</version>
jtulach@112
   103
      <scope>provided</scope>
jaroslav@222
   104
      <exclusions>
jaroslav@222
   105
        <exclusion>
jaroslav@222
   106
          <groupId>com.oracle</groupId>
jaroslav@222
   107
          <artifactId>javafx</artifactId>
jaroslav@222
   108
        </exclusion>
jaroslav@222
   109
      </exclusions>
jtulach@112
   110
    </dependency>
jtulach@112
   111
    <dependency>
jtulach@63
   112
      <groupId>org.testng</groupId>
jtulach@63
   113
      <artifactId>testng</artifactId>
jtulach@63
   114
      <version>6.7</version>
jtulach@63
   115
      <scope>test</scope>
jtulach@63
   116
    </dependency>
jtulach@63
   117
  </dependencies>
jtulach@63
   118
  <profiles>
jtulach@63
   119
      <profile>
jtulach@63
   120
          <id>fxbrwsr</id>
jtulach@63
   121
          <activation>
jtulach@63
   122
              <activeByDefault>true</activeByDefault>
jtulach@63
   123
          </activation>
jtulach@63
   124
          <build>
jtulach@63
   125
            <plugins>
jtulach@63
   126
                <plugin>
jtulach@131
   127
                    <groupId>org.apache.maven.plugins</groupId>
jtulach@131
   128
                    <artifactId>maven-jar-plugin</artifactId>
jtulach@131
   129
                    <version>2.4</version>
jtulach@131
   130
                    <configuration>
jtulach@131
   131
                        <archive>
jtulach@131
   132
                            <manifest>
jtulach@131
   133
                                <mainClass>${project.mainclass}</mainClass>
jtulach@131
   134
                                <addClasspath>true</addClasspath>
jtulach@131
   135
                                <classpathPrefix>lib/</classpathPrefix>
jtulach@131
   136
                            </manifest>
jtulach@131
   137
                        </archive>
jtulach@131
   138
                    </configuration>
jtulach@131
   139
                </plugin>
jtulach@131
   140
                <plugin>
jtulach@63
   141
                    <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   142
                    <version>2.4</version>
jtulach@63
   143
                    <executions>
jtulach@63
   144
                        <execution>
jtulach@63
   145
                            <id>distro-assembly</id>
jtulach@63
   146
                            <phase>package</phase>
jtulach@63
   147
                            <goals>
jtulach@63
   148
                                <goal>single</goal>
jtulach@63
   149
                            </goals>
jtulach@63
   150
                            <configuration>
jtulach@63
   151
                                <descriptors>
jtulach@63
   152
                                    <descriptor>src/main/assembly/html.java.net.xml</descriptor>
jtulach@63
   153
                                </descriptors>
jtulach@63
   154
                            </configuration>
jtulach@63
   155
                        </execution>
jtulach@63
   156
                    </executions>                
jtulach@63
   157
                </plugin>      
jtulach@63
   158
            </plugins>
jtulach@63
   159
          </build>
jtulach@63
   160
          <dependencies>
jtulach@63
   161
            <dependency>
jtulach@63
   162
                <groupId>org.netbeans.html</groupId>
jtulach@63
   163
                <artifactId>net.java.html.boot.fx</artifactId>
jtulach@63
   164
                <version>${net.java.html.version}</version>
jtulach@63
   165
                <scope>runtime</scope>
jtulach@63
   166
            </dependency>
jtulach@63
   167
          </dependencies>
jtulach@63
   168
      </profile>
jtulach@63
   169
      <profile>
jtulach@63
   170
          <id>bck2brwsr</id>
jtulach@63
   171
          <activation>
jtulach@63
   172
              <property>
jtulach@63
   173
                  <value>bck2brwsr</value>
jaroslav@160
   174
                  <name>show</name>
jtulach@63
   175
              </property>
jtulach@63
   176
          </activation>
jtulach@63
   177
          <build>
jtulach@63
   178
              <plugins>
jtulach@63
   179
                  <plugin>
jtulach@131
   180
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@131
   181
                      <artifactId>maven-jar-plugin</artifactId>
jtulach@131
   182
                      <version>2.4</version>
jtulach@131
   183
                      <configuration>
jtulach@131
   184
                          <archive>
jtulach@131
   185
                              <manifest>
jtulach@131
   186
                                  <mainClass>${project.mainclass}</mainClass>
jtulach@131
   187
                                  <addClasspath>true</addClasspath>
jtulach@131
   188
                                  <classpathPrefix>lib/</classpathPrefix>
jtulach@131
   189
                              </manifest>
jtulach@131
   190
                          </archive>
jtulach@131
   191
                      </configuration>
jtulach@131
   192
                  </plugin>
jtulach@131
   193
                  <plugin>
jtulach@63
   194
                      <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   195
                      <artifactId>bck2brwsr-maven-plugin</artifactId>
jtulach@63
   196
                      <version>${bck2brwsr.version}</version>
jtulach@63
   197
                      <executions>
jtulach@63
   198
                          <execution>
jtulach@63
   199
                              <goals>
jtulach@63
   200
                                  <goal>brwsr</goal>
jaroslav@160
   201
                                  <goal>aot</goal>
jtulach@63
   202
                              </goals>
jtulach@63
   203
                          </execution>
jtulach@63
   204
                      </executions>
jtulach@63
   205
                      <configuration>
jaroslav@160
   206
                          <obfuscation>${bck2brwsr.obfuscationlevel}</obfuscation>
jaroslav@160
   207
                          <directory>${project.build.directory}/${project.build.finalName}-bck2brwsr/public_html/</directory>
jaroslav@160
   208
                          <startpage>index.html</startpage>
jaroslav@160
   209
                          <classPathPrefix>lib</classPathPrefix>
jaroslav@160
   210
                          <mainJavaScript>${project.build.directory}/minesweeper.js</mainJavaScript>
jaroslav@160
   211
                          <exports>
jaroslav@160
   212
                              <export>org.apidesign.demo.minesweeper.MinesModel</export>
jaroslav@160
   213
                          </exports>
jtulach@63
   214
                      </configuration>
jtulach@63
   215
                  </plugin>
jtulach@63
   216
                  <plugin>
jtulach@63
   217
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@63
   218
                      <artifactId>maven-compiler-plugin</artifactId>
jtulach@63
   219
                      <configuration>
jtulach@63
   220
                          <compilerArguments>
jtulach@63
   221
                              <bootclasspath>netbeans.ignore.jdk.bootclasspath</bootclasspath>
jtulach@63
   222
                          </compilerArguments>
jtulach@63
   223
                      </configuration>
jtulach@63
   224
                  </plugin>
jtulach@63
   225
                  <plugin>
jtulach@63
   226
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@63
   227
                      <version>2.4</version>
jtulach@63
   228
                      <executions>
jtulach@63
   229
                          <execution>
jtulach@63
   230
                              <id>distro-assembly</id>
jtulach@63
   231
                              <phase>package</phase>
jtulach@63
   232
                              <goals>
jtulach@63
   233
                                  <goal>single</goal>
jtulach@63
   234
                              </goals>
jtulach@63
   235
                              <configuration>
jtulach@63
   236
                                  <descriptors>
jtulach@63
   237
                                      <descriptor>src/main/assembly/bck2brwsr.xml</descriptor>
jtulach@63
   238
                                  </descriptors>
jtulach@63
   239
                              </configuration>
jtulach@63
   240
                          </execution>
jtulach@63
   241
                      </executions>                
jtulach@63
   242
                  </plugin>      
jtulach@63
   243
              </plugins>
jtulach@63
   244
          </build>
jtulach@63
   245
          <dependencies>
jtulach@63
   246
              <dependency>
jtulach@63
   247
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   248
                  <artifactId>emul</artifactId>
jtulach@63
   249
                  <version>${bck2brwsr.version}</version>
jtulach@63
   250
                  <classifier>rt</classifier>
jtulach@63
   251
              </dependency>
jtulach@63
   252
              <dependency>
jaroslav@160
   253
                  <groupId>org.netbeans.html</groupId>
jaroslav@160
   254
                  <artifactId>net.java.html.boot</artifactId>
jaroslav@160
   255
                  <version>${net.java.html.version}</version>
jaroslav@160
   256
                  <exclusions>
jaroslav@160
   257
                      <exclusion>
jaroslav@160
   258
                          <artifactId>asm</artifactId>
jaroslav@160
   259
                          <groupId>org.ow2.asm</groupId>
jaroslav@160
   260
                      </exclusion>
jaroslav@160
   261
                  </exclusions>
jaroslav@160
   262
              </dependency>
jaroslav@160
   263
              <dependency>
jtulach@63
   264
                  <groupId>org.apidesign.bck2brwsr</groupId>
jtulach@63
   265
                  <artifactId>ko-bck2brwsr</artifactId>
jtulach@63
   266
                  <version>${bck2brwsr.version}</version>
jtulach@63
   267
                  <scope>runtime</scope>
jtulach@63
   268
              </dependency>
jtulach@63
   269
          </dependencies>
jtulach@63
   270
      </profile>
jtulach@81
   271
      <profile>
jtulach@81
   272
          <id>dlvkbrwsr</id>
jtulach@81
   273
          <properties>
jtulach@81
   274
              <platform.version>4.1.1.4</platform.version>
jtulach@81
   275
              <android.plugin.version>3.7.0</android.plugin.version>
jtulach@81
   276
              <debug>false</debug>
jtulach@81
   277
          </properties>
jtulach@81
   278
          <dependencies>
jtulach@81
   279
              <dependency>
jtulach@81
   280
                  <groupId>com.google.android</groupId>
jtulach@81
   281
                  <artifactId>android</artifactId>
jtulach@81
   282
                  <version>${platform.version}</version>
jtulach@81
   283
                  <scope>provided</scope>
jtulach@81
   284
              </dependency>
jtulach@81
   285
              <dependency>
jtulach@107
   286
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@107
   287
                  <artifactId>dlvkbrwsr</artifactId>
jaroslav@229
   288
                  <version>1.0.1</version>
jtulach@107
   289
                  <type>jar</type>
jtulach@107
   290
              </dependency>
jtulach@107
   291
              <dependency>
jtulach@81
   292
                  <groupId>org.netbeans.html</groupId>
jtulach@81
   293
                  <artifactId>ko-ws-tyrus</artifactId>
jtulach@81
   294
                  <version>${net.java.html.version}</version>
jtulach@81
   295
                  <exclusions>
jtulach@81
   296
                      <exclusion>
jtulach@81
   297
                          <artifactId>org.json-osgi</artifactId>
jtulach@81
   298
                          <groupId>de.twentyeleven.skysail</groupId>
jtulach@81
   299
                      </exclusion>
jtulach@81
   300
                  </exclusions>
jtulach@81
   301
              </dependency>
jtulach@81
   302
          </dependencies>
jtulach@81
   303
          <build>
jtulach@81
   304
              <plugins>
jtulach@81
   305
                  <plugin>
jaroslav@159
   306
                      <groupId>com.filmon.maven</groupId>
jaroslav@159
   307
                      <artifactId>image-maven-plugin</artifactId>
jaroslav@159
   308
                      <version>1.1</version>
jaroslav@159
   309
                      <executions>
jaroslav@159
   310
                          <execution>
jaroslav@159
   311
                              <goals>
jaroslav@159
   312
                                  <goal>scale</goal>
jaroslav@159
   313
                              </goals>
jaroslav@159
   314
                              <configuration>
jaroslav@159
   315
                                  <outputDirectory>target/res</outputDirectory>
jaroslav@159
   316
                                  <images>
jaroslav@159
   317
                                      <image>
jaroslav@159
   318
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   319
                                          <destination>drawable-hdpi/ic_launcher.png</destination>
jaroslav@159
   320
                                          <width>72</width>
jaroslav@159
   321
                                      </image>
jaroslav@159
   322
                                      <image>
jaroslav@159
   323
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   324
                                          <destination>drawable-mdpi/ic_launcher.png</destination>
jaroslav@159
   325
                                          <width>48</width>
jaroslav@159
   326
                                      </image>
jaroslav@159
   327
                                      <image>
jaroslav@159
   328
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   329
                                          <destination>drawable-xhdpi/ic_launcher.png</destination>
jaroslav@159
   330
                                          <width>96</width>
jaroslav@159
   331
                                      </image>
jaroslav@159
   332
                                      <image>
jaroslav@159
   333
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@159
   334
                                          <destination>drawable-xxhdpi/ic_launcher.png</destination>
jaroslav@159
   335
                                          <width>144</width>
jaroslav@159
   336
                                      </image>
jaroslav@159
   337
                                  </images>
jaroslav@159
   338
                              </configuration>
jaroslav@159
   339
                          </execution>
jaroslav@159
   340
                      </executions>
jaroslav@159
   341
                  </plugin>
jaroslav@159
   342
                  <plugin>
jtulach@81
   343
                      <groupId>com.jayway.maven.plugins.android.generation2</groupId>
jtulach@81
   344
                      <artifactId>android-maven-plugin</artifactId>
jtulach@81
   345
                      <version>${android.plugin.version}</version>
jtulach@81
   346
                      <extensions>true</extensions>
jtulach@81
   347
                      <configuration>
jaroslav@159
   348
                          <resourceDirectory>target/res</resourceDirectory>
jtulach@81
   349
                          <classifier>apk</classifier>
jtulach@81
   350
                          <attachJar>false</attachJar>
jtulach@81
   351
                          <apkDebug>debug</apkDebug>
jtulach@81
   352
                          <assetsDirectory>src/main/webapp</assetsDirectory>
jtulach@81
   353
                          <sdk>
jaroslav@151
   354
                              <platform>19</platform>
jtulach@81
   355
                          </sdk>
jtulach@81
   356
                          <apk>
jtulach@81
   357
                              <metaIncludes>
jaroslav@215
   358
                                  <metaInclude>services/org.netbeans.**</metaInclude>
jtulach@81
   359
                              </metaIncludes>
jtulach@81
   360
                          </apk>
jtulach@110
   361
                          <extractDuplicates>true</extractDuplicates>
jtulach@81
   362
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   363
                      </configuration>
jtulach@81
   364
                      <executions>
jtulach@81
   365
                          <execution>
jtulach@81
   366
                              <id>apk</id>
jtulach@81
   367
                              <goals>
jtulach@81
   368
                                  <goal>apk</goal>
jtulach@81
   369
                                  <goal>dex</goal>
jtulach@81
   370
                              </goals>
jtulach@81
   371
                          </execution>
jtulach@81
   372
                      </executions>
jtulach@81
   373
                  </plugin>
jtulach@81
   374
                  <plugin>
jtulach@81
   375
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@81
   376
                      <artifactId>maven-install-plugin</artifactId>
jtulach@81
   377
                      <version>2.5.1</version>
jtulach@81
   378
                      <configuration>
jtulach@81
   379
                          <groupId>${project.groupId}</groupId>
jtulach@81
   380
                          <artifactId>${project.artifactId}</artifactId>
jtulach@81
   381
                          <version>${project.version}</version>
jtulach@81
   382
                          <file>${project.build.directory}/${project.build.finalName}.apk</file>
jtulach@81
   383
                          <packaging>apk</packaging>
jtulach@81
   384
                          <skip>true</skip>
jtulach@81
   385
                      </configuration>
jtulach@81
   386
                      <executions>
jtulach@81
   387
                          <execution>
jtulach@81
   388
                              <id>install-apk</id>
jtulach@81
   389
                              <phase>install</phase>
jtulach@81
   390
                              <goals>
jtulach@81
   391
                                  <goal>install-file</goal>
jtulach@81
   392
                              </goals>
jtulach@81
   393
                          </execution>
jtulach@81
   394
                      </executions>
jtulach@81
   395
                  </plugin>
jtulach@81
   396
              </plugins>
jtulach@81
   397
          </build>
jtulach@91
   398
      </profile>
jtulach@91
   399
      <profile>
jtulach@91
   400
          <id>teabrwsr</id>
jtulach@91
   401
          <build>
jtulach@91
   402
              <plugins>
jtulach@91
   403
                  <plugin>
jtulach@91
   404
                      <groupId>org.teavm</groupId>
jtulach@91
   405
                      <artifactId>teavm-maven-plugin</artifactId>
jtulach@115
   406
                      <version>${teavm.version}</version>
jtulach@91
   407
                      <dependencies>
jtulach@91
   408
                          <dependency>
jtulach@91
   409
                              <groupId>org.teavm</groupId>
jtulach@91
   410
                              <artifactId>teavm-classlib</artifactId>
jtulach@115
   411
                              <version>${teavm.version}</version>
jtulach@91
   412
                          </dependency>
jtulach@91
   413
                          <!-- This module adds html4j support. It mainly includes JavaScriptBuilder support.
jtulach@91
   414
                          Also there are some little patches to JCL emulation, that are required to pass TCK -->
jtulach@91
   415
                          <dependency>
jtulach@91
   416
                              <groupId>org.teavm</groupId>
jtulach@91
   417
                              <artifactId>teavm-html4j</artifactId>
jtulach@115
   418
                              <version>${teavm.version}</version>
jtulach@91
   419
                          </dependency>
jtulach@91
   420
                      </dependencies>
jtulach@91
   421
                      <executions>
jtulach@91
   422
                          <execution>
jtulach@91
   423
                              <id>generate-minesweeper</id>
jtulach@91
   424
                              <goals>
jtulach@91
   425
                                  <goal>build-javascript</goal>
jtulach@91
   426
                              </goals>
jtulach@91
   427
                              <phase>process-classes</phase>
jtulach@91
   428
                              <configuration>
jaroslav@223
   429
                                  <mainClass>org.apidesign.demo.minesweeper.MinesModel</mainClass>
jaroslav@223
   430
                                  <debugInformationGenerated>${teavm.debug}</debugInformationGenerated>
jaroslav@223
   431
                                  <sourceMapsGenerated>${teavm.debug}</sourceMapsGenerated>
jaroslav@223
   432
                                  <sourceFilesCopied>${teavm.debug}</sourceFilesCopied>
jtulach@91
   433
                                  <!-- Whether we want TeaVM to minify (obfuscate) the generated JavaScript -->
jtulach@91
   434
                                  <minifying>false</minifying>
jtulach@91
   435
                                  <!-- Don't include main page - we created it by ourselves -->
jtulach@91
   436
                                  <mainPageIncluded>false</mainPageIncluded>
jtulach@97
   437
                                  <!-- Merge runtime.js instead of putting as a separate file -->
jtulach@97
   438
                                  <runtime>MERGED</runtime>
jtulach@97
   439
                                  <!-- Name of the generated file -->
jtulach@97
   440
                                  <targetFileName>bck2brwsr.js</targetFileName>
jtulach@91
   441
                                  <targetDirectory>${project.build.directory}/teavm</targetDirectory>
jtulach@91
   442
                                  <!-- This transformer adds null checks before virtual calls. It is not included
jtulach@91
   443
                                  by default as we don't always need these null checks -->
jtulach@91
   444
                                  <transformers>
jtulach@91
   445
                                      <param>org.teavm.javascript.NullPointerExceptionTransformer</param>
jtulach@91
   446
                                  </transformers>
jtulach@91
   447
                              </configuration>
jtulach@91
   448
                          </execution>
jtulach@91
   449
                      </executions>
jtulach@91
   450
                  </plugin>
jtulach@91
   451
                  <plugin>
jtulach@91
   452
                      <artifactId>maven-assembly-plugin</artifactId>
jtulach@91
   453
                      <version>2.4</version>
jtulach@91
   454
                      <executions>
jtulach@91
   455
                          <execution>
jtulach@91
   456
                              <id>distro-assembly</id>
jtulach@91
   457
                              <phase>package</phase>
jtulach@91
   458
                              <goals>
jtulach@91
   459
                                  <goal>single</goal>
jtulach@91
   460
                              </goals>
jtulach@91
   461
                              <configuration>
jtulach@91
   462
                                  <descriptors>
jtulach@91
   463
                                      <descriptor>src/main/assembly/teabrwsr.xml</descriptor>
jtulach@91
   464
                                  </descriptors>
jtulach@91
   465
                              </configuration>
jtulach@91
   466
                          </execution>
jtulach@91
   467
                      </executions>                
jtulach@91
   468
                  </plugin>      
jtulach@91
   469
              </plugins>
jtulach@91
   470
          </build>
jtulach@81
   471
      </profile>
jtulach@111
   472
      <profile>
jtulach@125
   473
          <id>ibrwsr</id>
jtulach@125
   474
          <dependencies>
jtulach@125
   475
              <dependency>
jtulach@125
   476
                  <groupId>org.apidesign.brwsr</groupId>
jtulach@125
   477
                  <artifactId>ibrwsr</artifactId>
jaroslav@229
   478
                  <version>1.0.1</version>
jtulach@125
   479
                  <scope>runtime</scope>
jtulach@125
   480
              </dependency>
jtulach@125
   481
          </dependencies>
jtulach@125
   482
          <build>
jtulach@125
   483
              <plugins>
jtulach@125
   484
                  <plugin>
jaroslav@158
   485
                      <groupId>com.filmon.maven</groupId>
jaroslav@158
   486
                      <artifactId>image-maven-plugin</artifactId>
jaroslav@158
   487
                      <version>1.1</version>
jaroslav@158
   488
                      <executions>
jaroslav@158
   489
                          <execution>
jaroslav@158
   490
                              <goals>
jaroslav@158
   491
                                  <goal>scale</goal>
jaroslav@158
   492
                              </goals>
jaroslav@158
   493
                              <configuration>
jaroslav@158
   494
                                  <outputDirectory>target/images</outputDirectory>
jaroslav@158
   495
                                  <images>
jaroslav@158
   496
                                      <image>
jaroslav@158
   497
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   498
                                          <destination>Icon.png</destination>
jaroslav@158
   499
                                          <width>57</width>
jaroslav@158
   500
                                      </image>
jaroslav@158
   501
                                      <image>
jaroslav@158
   502
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   503
                                          <destination>Icon@2.png</destination>
jaroslav@158
   504
                                          <width>114</width>
jaroslav@158
   505
                                      </image>
jaroslav@158
   506
                                      <image>
jaroslav@158
   507
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   508
                                          <destination>Icon-60.png</destination>
jaroslav@158
   509
                                          <width>60</width>
jaroslav@158
   510
                                      </image>
jaroslav@158
   511
                                      <image>
jaroslav@158
   512
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   513
                                          <destination>Icon-60@2.png</destination>
jaroslav@158
   514
                                          <width>120</width>
jaroslav@158
   515
                                      </image>
jaroslav@158
   516
                                      <image>
jaroslav@158
   517
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   518
                                          <destination>Icon-72.png</destination>
jaroslav@158
   519
                                          <width>72</width>
jaroslav@158
   520
                                      </image>
jaroslav@158
   521
                                      <image>
jaroslav@158
   522
                                          <source>src/main/icons/DukeSweeper.png</source>
jaroslav@158
   523
                                          <destination>Icon-76.png</destination>
jaroslav@158
   524
                                          <width>76</width>
jaroslav@158
   525
                                      </image>
jaroslav@158
   526
                                  </images>
jaroslav@158
   527
                              </configuration>
jaroslav@158
   528
                          </execution>
jaroslav@158
   529
                      </executions>
jaroslav@158
   530
                  </plugin>
jaroslav@158
   531
                  <plugin>
jtulach@125
   532
                      <groupId>org.robovm</groupId>
jtulach@125
   533
                      <artifactId>robovm-maven-plugin</artifactId>
jaroslav@187
   534
                      <version>0.0.14.1</version>
jtulach@125
   535
                      <configuration>
jtulach@125
   536
                          <config>
jtulach@125
   537
                              <mainClass>org.apidesign.demo.minesweeper.Main</mainClass>
jtulach@125
   538
                              <forceLinkClasses>
jtulach@125
   539
                                  <pattern>java.util.logging.ConsoleHandler</pattern>
jtulach@125
   540
                                  <pattern>java.util.logging.SimpleFormatter</pattern>
jtulach@125
   541
                                  <pattern>org.netbeans.html.ko4j.KO4J</pattern>
jtulach@125
   542
                                  <pattern>org.netbeans.html.sound.impl.BrowserAudioEnv</pattern>
jtulach@125
   543
                                  <pattern>org.apidesign.brwsr.IBrwsrPrsntr</pattern>
jaroslav@134
   544
                              </forceLinkClasses>
jaroslav@134
   545
                              <executableName>MineSweeper</executableName>
jaroslav@134
   546
                              <resources>
jtulach@154
   547
                                  <resource>src/main/webapp/pages</resource>
jtulach@154
   548
                                  <resource>
jtulach@154
   549
                                      <targetPath>/</targetPath>
jaroslav@158
   550
                                      <directory>src/main/icons/</directory>
jaroslav@158
   551
                                      <includes>
jaroslav@158
   552
                                          <include>Default*.png</include>
jaroslav@158
   553
                                      </includes>
jaroslav@158
   554
                                  </resource>
jaroslav@158
   555
                                  <resource>
jaroslav@158
   556
                                      <targetPath>/</targetPath>
jaroslav@158
   557
                                      <directory>target/images/</directory>
jtulach@154
   558
                                      <includes>
jtulach@154
   559
                                          <include>*.png</include>
jtulach@154
   560
                                      </includes>
jtulach@154
   561
                                  </resource>
jaroslav@134
   562
                              </resources>
jaroslav@190
   563
                               <iosInfoPList>Info.plist.xml</iosInfoPList>
jtulach@125
   564
                          </config>
jtulach@125
   565
                          <includeJFX>false</includeJFX>
jaroslav@194
   566
                          <!--                      
jaroslav@192
   567
                          <iosSignIdentity>iPhone Distribution</iosSignIdentity>
jaroslav@194
   568
                          <iosProvisioningProfile>9728E91B-1BB7-40D6-8922-3DD3BA5E6ECD</iosProvisioningProfile> 
jaroslav@194
   569
                          -->
jtulach@125
   570
                      </configuration>
jtulach@125
   571
                  </plugin>
jtulach@125
   572
              </plugins>
jtulach@125
   573
          </build>
jtulach@125
   574
      </profile>      
jtulach@125
   575
      <profile>
jtulach@111
   576
          <id>nbrwsr</id>
jtulach@112
   577
          <dependencies>
jtulach@112
   578
              <dependency>
jtulach@118
   579
                  <groupId>org.netbeans.html</groupId>
jtulach@118
   580
                  <artifactId>nbrwsr</artifactId>
jtulach@144
   581
                  <version>${nb.html.version}</version>
jtulach@112
   582
                  <scope>compile</scope>
jtulach@112
   583
              </dependency>
jtulach@112
   584
          </dependencies>
jtulach@111
   585
          <build>
jtulach@111
   586
              <plugins>
jtulach@111
   587
                  <plugin>
jtulach@113
   588
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@113
   589
                      <artifactId>maven-resources-plugin</artifactId>
jtulach@113
   590
                      <version>2.6</version>
jtulach@113
   591
                      <executions>
jtulach@113
   592
                          <execution>
jtulach@113
   593
                              <id>include-webpages</id>
jtulach@113
   594
                              <goals>
jtulach@113
   595
                                  <goal>copy-resources</goal>
jtulach@113
   596
                              </goals>
jtulach@113
   597
                              <phase>process-resources</phase>
jtulach@113
   598
                              <configuration>
jtulach@113
   599
                                  <outputDirectory>${basedir}/target/classes/org/apidesign/demo/minesweeper</outputDirectory>
jtulach@113
   600
                                  <overwrite>true</overwrite>
jtulach@113
   601
                                  <resources>          
jtulach@113
   602
                                      <resource>
jtulach@113
   603
                                          <directory>src/main/webapp/pages</directory>
jtulach@113
   604
                                      </resource>
jtulach@113
   605
                                  </resources>              
jtulach@113
   606
                              </configuration>   
jtulach@113
   607
                          </execution>
jtulach@113
   608
                      </executions>
jtulach@113
   609
                  </plugin>
jtulach@113
   610
                  <plugin>
jtulach@111
   611
                      <groupId>org.codehaus.mojo</groupId>
jtulach@111
   612
                      <artifactId>nbm-maven-plugin</artifactId>
jtulach@111
   613
                      <version>3.13</version>
jtulach@111
   614
                      <extensions>true</extensions>
jtulach@111
   615
                      <executions>
jtulach@111
   616
                          <execution>
jtulach@111
   617
                              <id>default-manifest</id>
jtulach@111
   618
                              <phase>process-classes</phase>
jtulach@111
   619
                              <goals>
jtulach@111
   620
                                  <goal>manifest</goal>
jtulach@111
   621
                              </goals>
jtulach@111
   622
                              <configuration>
jtulach@111
   623
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   624
                                  <brandingToken>html4j4nb</brandingToken>
jtulach@129
   625
                                  <cluster>extra</cluster>
jtulach@111
   626
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   627
                              </configuration>
jtulach@111
   628
                          </execution>                       
jtulach@111
   629
                          <execution>
jtulach@111
   630
                              <id>default-nbm</id>
jtulach@111
   631
                              <phase>package</phase>
jtulach@111
   632
                              <goals>
jtulach@111
   633
                                  <goal>nbm</goal>
jtulach@111
   634
                              </goals>
jtulach@111
   635
                              <configuration>
jtulach@111
   636
                                  <useOSGiDependencies>true</useOSGiDependencies>
jtulach@129
   637
                                  <cluster>extra</cluster>
jtulach@111
   638
                                  <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   639
                              </configuration>
jtulach@111
   640
                          </execution>
jtulach@111
   641
                      </executions>
jtulach@111
   642
                      <configuration>
jtulach@111
   643
                          <useOSGiDependencies>true</useOSGiDependencies>
jtulach@111
   644
                          <brandingToken>html4j4nb</brandingToken>
jtulach@111
   645
                          <cluster>html4j4nb</cluster>
jtulach@111
   646
                          <verifyIntegrity>false</verifyIntegrity>
jtulach@111
   647
                      </configuration>
jtulach@111
   648
                  </plugin>                      
jtulach@111
   649
jtulach@111
   650
                  <plugin>
jtulach@111
   651
                      <groupId>org.apache.maven.plugins</groupId>
jtulach@111
   652
                      <artifactId>maven-jar-plugin</artifactId>
jtulach@111
   653
                      <configuration>
jtulach@111
   654
                          <!-- to have the jar plugin pickup the nbm generated manifest -->
jtulach@111
   655
                          <useDefaultManifestFile>true</useDefaultManifestFile>
jtulach@111
   656
                      </configuration>
jtulach@111
   657
                  </plugin>
jtulach@111
   658
              </plugins>
jtulach@111
   659
          </build>
jtulach@111
   660
      </profile>      
jtulach@63
   661
  </profiles>  
jtulach@63
   662
</project>