Skip to content

Commit 943f77f

Browse files
committed
Use gradle.bat on windows
If we're on Windows we should use the gradle.bat wrapper, and gradlew on posix operating systems.
1 parent b378047 commit 943f77f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6873,6 +6873,28 @@
68736873
</dependencyManagement>
68746874

68756875
<profiles>
6876+
<profile>
6877+
<id>windows</id>
6878+
<activation>
6879+
<os>
6880+
<family>Windows</family>
6881+
</os>
6882+
</activation>
6883+
<properties>
6884+
<gradle.wrapper>gradle.bat</gradle.wrapper>
6885+
</properties>
6886+
</profile>
6887+
<profile>
6888+
<id>posix</id>
6889+
<activation>
6890+
<os>
6891+
<family>unix</family>
6892+
</os>
6893+
</activation>
6894+
<properties>
6895+
<gradle.wrapper>./gradlew</gradle.wrapper>
6896+
</properties>
6897+
</profile>
68766898
<profile>
68776899
<id>scijava-gradle-catalog-and-platform</id>
68786900
<activation>
@@ -6894,7 +6916,7 @@
68946916
<goal>exec</goal>
68956917
</goals>
68966918
<configuration>
6897-
<executable>./gradlew</executable>
6919+
<executable>${gradle.wrapper}</executable>
68986920
<workingDirectory>${basedir}/gradle-scijava</workingDirectory>
68996921
<arguments>
69006922
<argument>--project-cache-dir</argument>

0 commit comments

Comments
 (0)