Skip to content

Commit

Permalink
Merge pull request #16400 from aloubyansky/fix-localproject-appartifa…
Browse files Browse the repository at this point in the history
…ct-version
  • Loading branch information
aloubyansky committed Apr 9, 2021
2 parents a059517 + 79ac5f1 commit dc9edb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -326,7 +326,7 @@ public AppArtifact getAppArtifact() {
}

public AppArtifact getAppArtifact(String extension) {
return new AppArtifact(groupId, artifactId, "", extension, version);
return new AppArtifact(groupId, artifactId, "", extension, getVersion());
}

private Path resolveRelativeToBaseDir(String path, String defaultPath) {
Expand Down
Expand Up @@ -458,6 +458,7 @@ private void testMavenCiFriendlyVersion(String placeholder, String testResourceD

final LocalProject module1 = LocalProject.load(module1Dir);

assertEquals(expectedResolvedVersion, module1.getAppArtifact().getVersion());
assertEquals(expectedResolvedVersion, module1.getVersion());
if (resolvesFromWorkspace) {
assertNotNull(module1.getWorkspace()); // the property must have been resolved from the workspace
Expand Down

0 comments on commit dc9edb4

Please sign in to comment.