Skip to content

Commit dbc5bcd

Browse files
committed
build: fix windows build
1 parent fe4b3bc commit dbc5bcd

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎modules/jooby-gradle-setup/pom.xml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<profiles>
3030
<profile>
3131
<id>gradlePlugin</id>
32+
<properties>
33+
<gradlew.executable>./gradlew</gradlew.executable>
34+
</properties>
3235
<build>
3336
<plugins>
3437
<plugin>
@@ -38,7 +41,7 @@
3841
<inherited>false</inherited>
3942
<configuration>
4043
<workingDirectory>${project.basedir}${file.separator}..${file.separator}jooby-gradle-plugin</workingDirectory>
41-
<executable>./gradlew</executable>
44+
<executable>${gradlew.executable}</executable>
4245
</configuration>
4346

4447
<executions>
@@ -88,5 +91,16 @@
8891
</plugins>
8992
</build>
9093
</profile>
94+
<profile>
95+
<id>gradlePlugin-windows</id>
96+
<activation>
97+
<os>
98+
<family>windows</family>
99+
</os>
100+
</activation>
101+
<properties>
102+
<gradlew.executable>${project.basedir}${file.separator}..${file.separator}jooby-gradle-plugin${file.separator}gradlew.bat</gradlew.executable>
103+
</properties>
104+
</profile>
91105
</profiles>
92106
</project>

0 commit comments

Comments
 (0)