Skip to content

Commit

Permalink
Fix regression with evaluating subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Jun 28, 2018
1 parent fff0255 commit e595cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/widen/versioning/VersioningPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void apply(final Project project) {

// Defer setting the version until after the build script is evaluated.
project.afterEvaluate(p -> {
String version = VersionGenerator.generateFromGit(settings, p.getProjectDir());
String version = VersionGenerator.generateFromGit(settings, p.getRootProject().getProjectDir());
if (version != null) {
p.setVersion(version);
}
Expand Down

0 comments on commit e595cdc

Please sign in to comment.