prepare for 6.0.0.Alpha8
This commit is contained in:
parent
8518c04862
commit
5ae9e9fb7e
|
@ -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" )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue