mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-14 14:10:52 +00:00
Upgrade to Nisse extension (#1287)
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<extensions>
|
||||
<extension>
|
||||
<groupId>eu.maveniverse.maven.nisse</groupId>
|
||||
<artifactId>extension</artifactId>
|
||||
<version>0.4.0</version>
|
||||
</extension>
|
||||
</extensions>
|
||||
|
1
.mvn/maven.config
Normal file
1
.mvn/maven.config
Normal file
@@ -0,0 +1 @@
|
||||
-Dnisse.compat.osDetector=true
|
35
pom.xml
35
pom.xml
@@ -573,41 +573,6 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmavenplus</groupId>
|
||||
<artifactId>gmavenplus-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>set-platform-properties</id>
|
||||
<goals>
|
||||
<goal>execute</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<scripts>
|
||||
<script>// Naming conventions coined by GraalVM
|
||||
// https://github.com/graalvm/graalvm-ce-builds/releases/
|
||||
String osName = System.getProperty('os.name').toLowerCase(Locale.ROOT)
|
||||
if (osName.startsWith('windows')) {
|
||||
project.properties['os.detected.name'] = 'windows'
|
||||
} else if (osName.startsWith('linux')) {
|
||||
project.properties['os.detected.name'] = 'linux'
|
||||
} else if (osName.startsWith('osx') || osName.startsWith('mac os x')) {
|
||||
project.properties['os.detected.name'] = 'darwin'
|
||||
} else {
|
||||
project.properties['os.detected.name'] = osName
|
||||
}
|
||||
String osArch = System.getProperty('os.arch').toLowerCase(Locale.ROOT)
|
||||
if (osArch.equals('amd64') || osArch.equals('x86_64')) {
|
||||
project.properties['os.detected.arch'] = 'amd64'
|
||||
} else {
|
||||
project.properties['os.detected.arch'] = osArch
|
||||
}</script>
|
||||
</scripts>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
Reference in New Issue
Block a user