Skip to content

Commit

Permalink
Move cleaning the .okbuck/gen folder to the first step of setupOkbuck. (
Browse files Browse the repository at this point in the history
#430)

This prevents the folder from being cleaned every time the project is
evaluated.
  • Loading branch information
runningcode authored and kageiit committed Apr 25, 2017
1 parent 3680ea0 commit 45ba411
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class OkBuckGradlePlugin implements Plugin<Project> {

// Configure setup task
setupOkbuck.doLast {
// Cleanup gen folder
FileUtil.deleteQuietly(project.projectDir.toPath().resolve(OKBUCK_GEN))

addSubProjectRepos(project as Project, okbuckExt.buckProjects as Set<Project>)
Set<Configuration> projectConfigurations = configurations(okbuckExt.buckProjects)
projectConfigurations.addAll([externalOkbuck])
Expand Down Expand Up @@ -198,9 +201,6 @@ class OkBuckGradlePlugin implements Plugin<Project> {
kotlinDeps ? kotlinDeps.right: null)
}

// Cleanup gen folder
FileUtil.deleteQuietly(project.projectDir.toPath().resolve(OKBUCK_GEN))

// Create clean task
Task okBuckClean = project.tasks.create(OKBUCK_CLEAN, OkBuckCleanTask, {
projects = okbuckExt.buckProjects
Expand Down

0 comments on commit 45ba411

Please sign in to comment.