Skip to content

Commit

Permalink
Move Gradle plugin build directory when included
Browse files Browse the repository at this point in the history
This ensures we do not get stale build config used when publishing from the main build.
  • Loading branch information
JakeWharton committed Oct 17, 2023
1 parent bdc2188 commit f021b1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redwood-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ if (rootProject.name == 'redwood') {
redwoodBuild {
publishing()
}
} else {
// Move the build directory when included in build-support so as to not poison the real build.
// If we don't there's a chance incorrect build config values (configured below) will be used.
layout.buildDirectory = new File(rootDir, "build/redwood-gradle-plugin")
}

tasks.withType(JavaCompile).configureEach {
Expand Down

0 comments on commit f021b1d

Please sign in to comment.