Skip to content

Gradle: setWorkingDir not working in 1.5.0 #9653

@pschyma

Description

@pschyma

Describe the bug
I'm setting the working directory in for quarkusDev task in my Gradle build file via

tasks {
  quarkusDev {
    setWorkingDir(projectDir.path)
  }
}

After updating to any 1.5.0 version of Quarkus I get ${proejct.path}\build\classes\java\main\. as working dir in the app.

Expected behavior
The working directory of the application is set properly.

Actual behavior
The setting is ignored and the classes path is used.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project.
  2. Set a working directory in task configuration (e.g. C:\tmp on Windows).
  3. Access current working directory in Java (e.g. System.getProperty("user.dir") or Path.of("")).

Environment (please complete the following information):

  • Output of uname -a or ver: Microsoft Windows [Version 10.0.18363.836]
  • Output of java -version:
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02)
OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing)
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.5.0.Final and 1.5.0.CR1
  • Build tool (ie. output of mvnw --version or gradlew --version): 6.4.1

Additional context
This does also not work on a Linux machine.

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions