Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use quarkusDev#workingDirectory #39829

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/src/main/asciidoc/gradle-tooling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ You can change the working directory the development environment runs on:
[source,groovy]
----
quarkusDev {
workingDir = rootProject.projectDir
workingDirectory = rootProject.layout.projectDirectory.asFile
}
----
****
Expand All @@ -194,7 +194,7 @@ quarkusDev {
[source,kotlin]
----
tasks.quarkusDev {
workingDir = rootProject.projectDir.toString()
workingDirectory = rootProject.layout.projectDirectory.asFile
}
----
****
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ compileTestJava {
}

quarkusDev {
workingDir = "./build"
workingDirectory = layout.buildDirectory.asFile
}

quarkusBuild {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
}

quarkusDev {
workingDir = rootProject.projectDir
workingDirectory = rootProject.layout.projectDirectory.asFile
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import static java.nio.file.Files.createTempDirectory

plugins {
id 'java'
id 'io.quarkus'
Expand Down Expand Up @@ -31,9 +33,9 @@ compileTestJava {
}

quarkusDev {
workingDir = System.getProperty("java.io.tmpdir")
workingDirectory = createTempDirectory("").toFile()
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
}
Loading