Skip to content

Commit

Permalink
ensure root project name is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
forozco committed Aug 28, 2019
1 parent 3775d95 commit edfc001
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.palantir.baseline.plugins;

import com.google.common.base.Preconditions;
import com.palantir.baseline.plugins.versions.BaselineVersions;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
Expand All @@ -33,6 +34,8 @@ public void apply(Project project) {
"com.palantir.baseline should be applied to the root project only, not '{}'",
project.getName());
}
Preconditions.checkState(project.getName().equals(project.getProjectDir().getName()),
"Root project name must specified in settings.gradle");

rootProject.getPluginManager().apply(BaselineConfig.class);
rootProject.getPluginManager().apply(BaselineCircleCi.class);
Expand Down

0 comments on commit edfc001

Please sign in to comment.