From 69a55884250abbdaff10f67673fabdc091efb7bb Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Wed, 26 Jun 2024 19:37:01 +0800 Subject: [PATCH] Add artifact `grails-plugin.xml` --- publishing/mavenCentral.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/publishing/mavenCentral.gradle b/publishing/mavenCentral.gradle index 7534c55..04b51c3 100644 --- a/publishing/mavenCentral.gradle +++ b/publishing/mavenCentral.gradle @@ -36,6 +36,13 @@ publishing { } from components.java + afterEvaluate { + if (project.name.startsWith('grace-plugin')) { + artifact source: "${project.buildDir}/classes/groovy/main/META-INF/grails-plugin.xml", + classifier: "plugin", + extension: 'xml' + } + } pom { name = projectName description = "Grace Async Framework : $projectName"