diff --git a/ci/release/Jenkinsfile b/ci/release/Jenkinsfile
index bd786806aa..bdd36c2c06 100644
--- a/ci/release/Jenkinsfile
+++ b/ci/release/Jenkinsfile
@@ -82,7 +82,8 @@ pipeline {
configFile(fileId: 'release.config.ssh.knownhosts', targetLocation: env.HOME + '/.ssh/known_hosts')]) {
// using MAVEN_GPG_PASSPHRASE (the default env variable name for passphrase in maven gpg plugin)
withCredentials([file(credentialsId: 'release.gpg.private-key', variable: 'RELEASE_GPG_PRIVATE_KEY_PATH'),
- string(credentialsId: 'release.gpg.passphrase', variable: 'MAVEN_GPG_PASSPHRASE')]) {
+ string(credentialsId: 'release.gpg.passphrase', variable: 'MAVEN_GPG_PASSPHRASE'),
+ usernamePassword(credentialsId: 'gradle-plugin-portal-api-key', passwordVariable: 'GRADLE_PUBLISH_SECRET', usernameVariable: 'GRADLE_PUBLISH_KEY')]) {
sshagent(['ed25519.Hibernate-CI.github.com', 'hibernate.filemgmt.jboss.org', 'hibernate-ci.frs.sourceforge.net']) {
sh 'cat $HOME/.ssh/config'
sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git'
diff --git a/gradle/plugin/build.gradle b/gradle/plugin/build.gradle
index f36fbb17ba..9daceaf6d8 100644
--- a/gradle/plugin/build.gradle
+++ b/gradle/plugin/build.gradle
@@ -1,6 +1,7 @@
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
+ id 'com.gradle.plugin-publish' version '1.2.1'
}
group = 'org.hibernate.tool'
@@ -25,11 +26,19 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
+rootProject.ext.set("gradle.publish.key", System.env.PLUGIN_PORTAL_USERNAME)
+rootProject.ext.set("gradle.publish.secret", System.env.PLUGIN_PORTAL_PASSWORD)
+
gradlePlugin {
+ website = 'https://github.com/hibernate/hibernate-tools/tree/main/gradle/plugin'
+ vcsUrl = 'https://github.com/hibernate/hibernate-tools/tree/main/gradle/plugin'
plugins {
hibernate {
id = 'org.hibernate.tool.hibernate-tools-gradle'
implementationClass = 'org.hibernate.tool.gradle.Plugin'
+ displayName = 'Hibernate Tools Gradle Plugin'
+ description = 'Gradle plugin to provide hibernate-tools reverse engineering and code/schema generation abilities.'
+ tags = ['hibernate','tools','reverse engineering','reveng','generation']
}
}
}
diff --git a/gradle/pom.xml b/gradle/pom.xml
index 63d7999065..04e4a28071 100644
--- a/gradle/pom.xml
+++ b/gradle/pom.xml
@@ -30,11 +30,11 @@
Hibernate Tools Gradle Plugin
Gradle plugin to provide hibernate-tools reverse engineering and code/schema generation abilities.
- http://hibernate.org/tools/
+ https://hibernate.org/tools/
JIRA
- http://hibernate.onjira.com/browse/HBX
+ https://hibernate.atlassian.net/projects/HBX
@@ -101,4 +101,42 @@
-
\ No newline at end of file
+
+
+ release
+
+
+ performRelease
+ true
+
+
+
+
+
+ org.codehaus.mojo
+ exec-maven-plugin
+
+
+ gradle-publish-to-plugin-portal
+ deploy
+
+ ${gradle.executable}
+
+ publishPlugins
+ -Pversion=${project.version}
+ -Dmaven.repo.local=${settings.localRepository}
+
+
+
+ exec
+
+
+
+
+
+
+
+
+
+
+