Skip to content

Commit

Permalink
Do not allow okbuck to be run without okbuck.wrapper set to true.
Browse files Browse the repository at this point in the history
  • Loading branch information
runningcode authored and Nelson Osacky committed Apr 26, 2017
1 parent 45ba411 commit e8a961a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ class OkBuckGradlePlugin implements Plugin<Project> {
[cacheName, project.configurations.maybeCreate("${cacheName}ExtraDepCache")]
}

setupOkbuck.doFirst {
if (!System.getProperty("okbuck.wrapper", "false").toBoolean()) {
throw new IllegalArgumentException("Okbuck cannot be invoked without 'okbuck.wrapper' set to true. Use buckw instead")
}
}

// Configure setup task
setupOkbuck.doLast {
// Cleanup gen folder
Expand Down

0 comments on commit e8a961a

Please sign in to comment.