HHH-15381 Try to fix gradle plugin publishing and platform publishing
This commit is contained in:
parent
a83ff54671
commit
bc5b866c86
|
@ -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" )
|
||||
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue