Skip to content

Commit

Permalink
Add native plugin and profile to build pom
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenschlansker committed Aug 24, 2023
1 parent 9ea9ef7 commit 1e5fc6a
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/graal-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:

- name: build
env:
MAVEN_CONFIG: "-Dbasepom.check.skip-enforcer=false -B"
MAVEN_CONFIG: "-Dbasepom.check.skip-enforcer=false -B -Djdbi3.native=true"
run: |
make install
Empty file added .skip-native
Empty file.
Empty file added bom/.skip-native
Empty file.
Empty file added internal/.skip-native
Empty file.
Empty file added internal/build/.skip-native
Empty file.
51 changes: 50 additions & 1 deletion internal/build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
<dep.plugin.inline.version>1.1.0</dep.plugin.inline.version>
<dep.plugin.kotlin.version>1.9.0</dep.plugin.kotlin.version>
<dep.plugin.ktlint.version>1.16.0</dep.plugin.ktlint.version>
<dep.plugin.native.version>0.9.24</dep.plugin.native.version>
<dep.plugin.sortpom.version>3.3.0</dep.plugin.sortpom.version>
<dep.postgresql.version>42.6.0</dep.postgresql.version>
<dep.slf4j.version>1.7.36</dep.slf4j.version>
Expand Down Expand Up @@ -1173,7 +1174,55 @@
</plugins>
</build>
</profile>

<profile>
<id>native</id>
<activation>
<property>
<name>jdbi.native</name>
</property>
<file>
<missing>.skip-native</missing>
</file>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${dep.plugin.native.version}</version>
<extensions>true</extensions>
<configuration>
<!-- ... -->
</configuration>
<executions>
<execution>
<id>build-native</id>
<goals>
<goal>compile-no-fork</goal>
</goals>
<phase>package</phase>
</execution>
<execution>
<id>test-native</id>
<goals>
<goal>test</goal>
</goals>
<phase>test</phase>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Profile to skip time-consuming steps. -->
<id>fast</id>
Expand Down

0 comments on commit 1e5fc6a

Please sign in to comment.