Skip to content

Commit bc5b866

Browse files
committed
HHH-15381 Try to fix gradle plugin publishing and platform publishing
1 parent a83ff54 commit bc5b866

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

hibernate-platform/hibernate-platform.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'java-platform'
33
}
44

5+
apply from: rootProject.file( 'gradle/releasable.gradle' )
56
apply from: rootProject.file( "gradle/base-information.gradle" )
67
apply from: rootProject.file( "gradle/publishing-pom.gradle" )
78

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,8 @@ checkstyle {
139139
showViolations = false
140140
}
141141

142-
143-
afterEvaluate {
144-
if ( project.ormVersion.isSnapshot ) {
145-
release.enabled false
146-
publish.enabled false
147-
publishPlugins.enabled false
148-
}
149-
}
142+
tasks.publish.enabled !project.ormVersion.isSnapshot
143+
tasks.publishPlugins.enabled !project.ormVersion.isSnapshot
150144

151145
gradle.taskGraph.whenReady { tg ->
152146
if ( tg.hasTask( project.tasks.publishPlugins ) && project.tasks.publishPlugins.enabled ) {

0 commit comments

Comments
 (0)