diff --git a/.github/workflows/publish-plugin.yaml b/.github/workflows/publish-plugin.yaml index f0dc03c..c3c57a0 100644 --- a/.github/workflows/publish-plugin.yaml +++ b/.github/workflows/publish-plugin.yaml @@ -29,3 +29,6 @@ jobs: - name: Publish on Plugin Portal run: ./gradlew --project-dir plugin-build setupPluginUploadFromEnvironment publishPlugins if: success() + - name: Publish on Maven Central + run: ./gradlew --project-dir plugin-build publishMavenJavaPublicationToMavenRepository + if: success() diff --git a/README.md b/README.md index 0ceb265..e0a6c76 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,9 @@
[][actions] +[][releases] [][pluginportal] +[][mavencentral]
@@ -112,4 +114,6 @@ Feel free to open an issue or submit a pull request for any bugs/improvements. [1]: https://github.com/Kotlin/kotlinx.coroutines/issues/2267#issuecomment-698826645 [debugmetadata]: https://github.com/JetBrains/kotlin/blob/master/libraries/stdlib/jvm/src/kotlin/coroutines/jvm/internal/DebugMetadata.kt [pluginportal]: https://plugins.gradle.org/plugin/com.axzae.unmeta +[mavencentral]: https://central.sonatype.com/artifact/com.axzae/unmeta [actions]: https://github.com/axzae/unmeta-gradle-plugin/actions +[releases]: https://github.com/axzae/unmeta-gradle-plugin/releases diff --git a/plugin-build/gradle.properties b/plugin-build/gradle.properties index 24cd120..2d50a6b 100644 --- a/plugin-build/gradle.properties +++ b/plugin-build/gradle.properties @@ -6,3 +6,9 @@ DESCRIPTION=Remove @DebugMetadata annotation from your Kotlin classes WEBSITE=https://github.com/axzae/unmeta-gradle-plugin VCS_URL=https://github.com/axzae/unmeta-gradle-plugin IMPLEMENTATION_CLASS=com.axzae.unmeta.UnmetaPlugin +# Maven Central POM +ORGANIZATION_NAME=Axzae +ORGANIZATION_URL=https://www.axzae.com +LICENSE_NAME=The MIT License +LICENSE_URL=https://opensource.org/license/mit/ +DEVELOPER_NAME=You Qi diff --git a/plugin-build/unmeta/build.gradle.kts b/plugin-build/unmeta/build.gradle.kts index aef0e41..17ebfa5 100644 --- a/plugin-build/unmeta/build.gradle.kts +++ b/plugin-build/unmeta/build.gradle.kts @@ -22,17 +22,68 @@ java { targetCompatibility = JavaVersion.VERSION_1_8 } +tasks.withType