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'
|
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" )
|
||||||
|
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in New Issue