Builds are now more explicitly checked for forced rebuilds.

This commit is contained in:
nathan 2017-09-14 23:03:48 +02:00
parent bde90d3d54
commit 148446747a
1 changed files with 6 additions and 0 deletions

View File

@ -204,6 +204,9 @@ class ProjectJava extends Project<ProjectJava> {
@Override
public
boolean build(final int targetJavaVersion) throws IOException {
// we should always rebuild if specified
forceRebuild |= buildOptions.compiler.forceRebuild;
// save off the target version we build
this.targetJavaVersion = targetJavaVersion;
@ -234,6 +237,9 @@ class ProjectJava extends Project<ProjectJava> {
shouldBuild |= !verifyChecksums();
// we should always rebuild if specified
shouldBuild |= forceRebuild;
// exit early if we already built this project, unless we force a rebuild
if (!forceRebuild && buildList.contains(this.name)) {
if (!this.isBuildingDependencies) {