Skip to content

Commit cff14d9

Browse files
committed
Revert "Revert publish task dependency on release changes"
This reverts commit 5418d16.
1 parent 5418d16 commit cff14d9

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

gradle/published-java-module.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
apply from: rootProject.file( 'gradle/java-module.gradle' )
99
apply from: rootProject.file( 'gradle/publishing.gradle' )
1010

11-
// Make sure that the publishReleaseArtifacts task of the release module runs the release task of this sub module
12-
tasks.getByPath( ':release:publishReleaseArtifacts' ).dependsOn tasks.release
11+
tasks.register("publishReleaseArtifacts") {
12+
// mirror for `:release:publishReleaseArtifacts`
13+
dependsOn tasks.release
14+
}
1315

1416
configurations {
1517
javadocSources {

hibernate-platform/hibernate-platform.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ publishingExtension.publications.named("publishedArtifacts", MavenPublication) {
7070
from components.javaPlatform
7171
}
7272

73-
project( ":release" ).getTasks().named( "publishReleaseArtifacts" ).configure {
73+
tasks.register("publishReleaseArtifacts") {
74+
// mirror for `:release:publishReleaseArtifacts`
7475
dependsOn tasks.release
7576
}
7677

tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle

+4-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ tasks.release.dependsOn tasks.publishPlugins
8484
// local publishing (SNAPSHOT testing)
8585
tasks.publish.dependsOn tasks.publishPlugins
8686

87-
// Make sure that the publishReleaseArtifacts task of the release module runs the release task of this sub module
88-
tasks.getByPath( ':release:publishReleaseArtifacts' ).dependsOn tasks.release
87+
tasks.register("publishReleaseArtifacts") {
88+
// mirror for `:release:publishReleaseArtifacts`
89+
dependsOn tasks.release
90+
}
8991

9092
// local publishing (SNAPSHOT testing)
9193
publishing {

0 commit comments

Comments
 (0)