Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions scripts/initializr/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
<artifactId>codenameone-javase</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.3</version>
<scope>test</scope>
</dependency>

<dependency>
<artifactId>initializr-ZipSupport</artifactId>
Expand Down Expand Up @@ -355,6 +361,19 @@
<artifactId>codenameone-maven-plugin</artifactId>

<executions>
<execution>
<!-- Build-time SVG transcoder: any SVG dropped into
src/main/css/ or src/main/svg/ is compiled into
a GeneratedSVGImage subclass plus an SVGRegistry,
so theme.css `url(*.svg)` references resolve at
runtime to vector-rendered Image objects on every
port. See docs/developer-guide/svg.md. -->
<id>transcode-svg</id>
<phase>generate-sources</phase>
<goals>
<goal>transcode-svg</goal>
</goals>
</execution>
<execution>
<id>generate-gui-sources</id>
<phase>process-sources</phase>
Expand All @@ -368,6 +387,12 @@
<goals>
<goal>bytecode-compliance</goal>
<goal>css</goal>
<!-- Scans the project's compiled bytecode for
@Route declarations and generates the
dispatcher class consumed by the per-platform
application stub. No-op for projects with no
@Route. -->
<goal>process-annotations</goal>
<!--<goal>compile-javase-sources</goal>-->
</goals>
</execution>
Expand All @@ -384,6 +409,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!--
Surefire is intentionally skipped in the common module.
Legacy AbstractTest classes run through `cn1:test` (wired
in the javase module's "test" profile). New JUnit 5
tests under src/test/java run from the javase module as
well, which mounts these same sources via
testSourceDirectory. Enabling Surefire here too would
execute every JUnit test twice.
-->
<configuration>
<skipTests>true</skipTests>
</configuration>
Expand Down
6 changes: 6 additions & 0 deletions scripts/initializr/javase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
<artifactId>codenameone-javase</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.3</version>
<scope>test</scope>
</dependency>

</dependencies>

Expand Down
Loading