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