Skip to content

Commit

Permalink
feat: jar final name with os name and arch
Browse files Browse the repository at this point in the history
  • Loading branch information
dterazhao committed Nov 20, 2024
1 parent 58cfdc2 commit 8a0c6f4
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<javacpp.build.skip>false</javacpp.build.skip>
<native.classifier>${javacpp.platform}${javacpp.platform.extension}</native.classifier>
<javacpp.platform>${os.name}-${os.arch}</javacpp.platform>
<jar.name.suffix>-${javacpp.platform}</jar.name.suffix>
<!--suppress CheckTagEmptyBody -->
<javacpp.platform.extension></javacpp.platform.extension>
<javacpp.platform.properties>${javacpp.platform}</javacpp.platform.properties>
Expand Down Expand Up @@ -67,18 +68,24 @@
</dependencies>

<profiles>
<!-- Do a full native build using Bazel -->
<profile>
<id>javacpp-build-skip</id>
<properties>
<javacpp.build.skip>true</javacpp.build.skip>
</properties>
</profile>
<profile>
<id>native-build-skip</id>
<activation>
<property>
<name>native.build.skip</name>
</property>
</activation>
<properties>
<bazel.build.skip>true</bazel.build.skip>
</properties>
</profile>
<profile>
<id>jar-name-no-os-info</id>
<properties>
<jar.name.suffix/>
</properties>
</profile>
</profiles>

<build>
Expand Down Expand Up @@ -117,6 +124,7 @@
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.build.finalName}${jar.name.suffix}</finalName>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit 8a0c6f4

Please sign in to comment.