vert-x/vertx-gradle-template

gradle template project does not work on Windows

Closed this issue · 1 comments

The vertx.gradle file defines some classpath rules to include files underneath directories

src/main/platform-lib
src/main/resources/platform-lib

but the real directories contain a '_' instead of a '-' character:

src/main/platform_lib
src/main/resources/platform_lib

On Windows the lines with '.jar' and '.zip'

classpath files(['src/main/platform-lib'])
classpath files(['src/main/platform-lib/*.jar'])
classpath files(['src/main/platform-lib/*.zip'])
classpath files(['src/main/resources/platform-lib'])
classpath files(['src/main/resources/platform-lib/*.jar'])
classpath files(['src/main/resources/platform-lib/*.zip'])

cause gradle to exit with error:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\vmuser\Workspace\my-vertx-module\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating root project 'my-vertx-module'.
> Could not resolve all dependencies for configuration 'classpath'.
> Could not normalize path for file 'C:\Users\vmuser\Workspace\my-vertx-module\src\main\platform-lib\*.jar'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Probably a fileTree() instead of the files() statement is meant here?

If you can send a PR I will merge it