Skip to content

Commit d28da6c

Browse files
committed
refactor print release task
1 parent 7d814ad commit d28da6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ allprojects {
120120

121121
def printAllReleasedArtifacts = project.tasks.create('printAllReleasedArtifacts')
122122
project.snapshot.configure { finalizedBy printAllReleasedArtifacts }
123+
project.tasks.named("build").configure { finalizedBy printAllReleasedArtifacts }
123124
subprojects {
124125
apply plugin: 'java-library'
125126

@@ -185,7 +186,6 @@ subprojects {
185186
file("${project.rootProject.buildDir}/versions.txt").append("${project.group}:${project.name}:${snapshotVersion}" + '\n')
186187
}
187188

188-
printReleasedArtifact.dependsOn(project.rootProject.snapshot)
189189
printAllReleasedArtifacts.dependsOn("${project.path}:printReleasedArtifact")
190190
}
191191

0 commit comments

Comments
 (0)