prepare for 6.0.0.Alpha8

This commit is contained in:
Steve Ebersole 2021-05-18 14:58:16 -05:00
parent 8518c04862
commit 5ae9e9fb7e
1 changed files with 11 additions and 28 deletions

View File

@ -76,34 +76,6 @@ processResources {
} }
if ( project.version.toString().endsWith( '-SNAPSHOT' ) ) {
tasks.publishPlugins.enabled = false
tasks.release.dependsOn tasks.publish
}
else {
tasks.publish.enabled = false
tasks.release.dependsOn( tasks.publishPlugins )
}
tasks.publishPlugins {
doFirst {
if ( credentials.hibernatePluginPortalUsername == null ) {
throw new RuntimeException( "`hibernatePluginPortalUsername` not found" )
}
if ( credentials.hibernatePluginPortalPassword == null ) {
throw new RuntimeException( "`hibernatePluginPortalPassword` not found" )
}
}
}
publishing {
publications {
plugin( MavenPublication ) {
from components.java
}
}
}
tasks.withType( GroovyCompile ) { tasks.withType( GroovyCompile ) {
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
} }
@ -125,3 +97,14 @@ tasks.test {
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] ) jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
} }
} }
gradle.taskGraph.whenReady { tg ->
if ( tg.hasTask( project.tasks.publishPlugins ) ) {
if ( credentials.hibernatePluginPortalUsername == null ) {
throw new RuntimeException( "`hibernatePluginPortalUsername` not found" )
}
if ( credentials.hibernatePluginPortalPassword == null ) {
throw new RuntimeException( "`hibernatePluginPortalPassword` not found" )
}
}
}