Skip to content

Commit

Permalink
HHH-15381 Try to fix gradle plugin publishing and platform publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Sep 2, 2022
1 parent a83ff54 commit bc5b866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions hibernate-platform/hibernate-platform.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java-platform'
}

apply from: rootProject.file( 'gradle/releasable.gradle' )
apply from: rootProject.file( "gradle/base-information.gradle" )
apply from: rootProject.file( "gradle/publishing-pom.gradle" )

Expand Down
10 changes: 2 additions & 8 deletions tooling/hibernate-gradle-plugin/hibernate-gradle-plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,8 @@ checkstyle {
showViolations = false
}


afterEvaluate {
if ( project.ormVersion.isSnapshot ) {
release.enabled false
publish.enabled false
publishPlugins.enabled false
}
}
tasks.publish.enabled !project.ormVersion.isSnapshot
tasks.publishPlugins.enabled !project.ormVersion.isSnapshot

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

0 comments on commit bc5b866

Please sign in to comment.