Skip to content

Commit

Permalink
issues/150: enable deployment for nested projects
Browse files Browse the repository at this point in the history
  • Loading branch information
fmck3516 committed Apr 11, 2024
1 parent f30d59b commit 2f6b54f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ private void applyInternal(Project project, OssrhPublishPluginExtension extensio

var version = project.getVersion().toString();

var snapshotDeployment = version.endsWith("SNAPSHOT") && graph.hasTask(":%s:publishSnapshot".formatted(project.getName()));
var releaseDeployment = ! version.endsWith("SNAPSHOT") && ! graph.hasTask(":%s:publishSnapshot".formatted(project.getName()));
var snapshotDeployment = version.endsWith("SNAPSHOT") && graph.hasTask("%s:publishSnapshot".formatted(project.getPath()));
var releaseDeployment = ! version.endsWith("SNAPSHOT") && ! graph.hasTask("%s:publishSnapshot".formatted(project.getPath()));

return snapshotDeployment || releaseDeployment;
});
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ include 'skippy-gradle'
include 'skippy-maven'
include 'skippy-junit4'
include 'skippy-junit5'
include ':skippy-extensions:skippy-repository-filesystem'
include ':skippy-extensions:skippy-repository-regression-suite'
include 'skippy-extensions:skippy-repository-filesystem'
include 'skippy-extensions:skippy-repository-regression-suite'

0 comments on commit 2f6b54f

Please sign in to comment.