Skip to content

Commit 241beef

Browse files
author
Igor Polevoy
committed
Merge pull request #432 from jasoma/gradle-plugin-windows-build
Setup the gradle plugin build to be platform agnostic #430
2 parents 1484632 + ca60eea commit 241beef

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

activejdbc-gradle-plugin/pom.xml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,31 @@
3030
</dependency>
3131
</dependencies>
3232

33+
<profiles>
34+
<profile>
35+
<id>Windows</id>
36+
<activation>
37+
<os>
38+
<family>Windows</family>
39+
</os>
40+
</activation>
41+
<properties>
42+
<gradleScript>.\gradlew.bat</gradleScript>
43+
</properties>
44+
</profile>
45+
<profile>
46+
<id>unix</id>
47+
<activation>
48+
<os>
49+
<family>unix</family>
50+
</os>
51+
</activation>
52+
<properties>
53+
<gradleScript>./gradlew</gradleScript>
54+
</properties>
55+
</profile>
56+
</profiles>
57+
3358
<build>
3459
<plugins>
3560
<!-- Runs the gradle managed build which will produce all artifacts -->
@@ -46,7 +71,7 @@
4671
</execution>
4772
</executions>
4873
<configuration>
49-
<executable>./gradlew</executable>
74+
<executable>${gradleScript}</executable>
5075
<arguments>
5176
<argument>build</argument>
5277
</arguments>

0 commit comments

Comments
 (0)