HHH-15381 Try to fix gradle plugin publishing and platform publishing

This commit is contained in:
Christian Beikov 2022-08-30 18:20:24 +02:00
parent a83ff54671
commit bc5b866c86
2 changed files with 3 additions and 8 deletions

View File

@ -2,6 +2,7 @@ plugins {
id 'java-platform' id 'java-platform'
} }
apply from: rootProject.file( 'gradle/releasable.gradle' )
apply from: rootProject.file( "gradle/base-information.gradle" ) apply from: rootProject.file( "gradle/base-information.gradle" )
apply from: rootProject.file( "gradle/publishing-pom.gradle" ) apply from: rootProject.file( "gradle/publishing-pom.gradle" )

View File

@ -139,14 +139,8 @@ checkstyle {
showViolations = false showViolations = false
} }
tasks.publish.enabled !project.ormVersion.isSnapshot
afterEvaluate { tasks.publishPlugins.enabled !project.ormVersion.isSnapshot
if ( project.ormVersion.isSnapshot ) {
release.enabled false
publish.enabled false
publishPlugins.enabled false
}
}
gradle.taskGraph.whenReady { tg -> gradle.taskGraph.whenReady { tg ->
if ( tg.hasTask( project.tasks.publishPlugins ) && project.tasks.publishPlugins.enabled ) { if ( tg.hasTask( project.tasks.publishPlugins ) && project.tasks.publishPlugins.enabled ) {