From 8850c5c33064fc7a5a55a091ad3cc981877743b5 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:18:54 +0000 Subject: [PATCH] chore: remove multiple uploads (#985) * chore: remove multiple uploads * add debug option * remove component java * copy example from github * comment out sourcejar and javadocjar tasks * enable build cache * publish pluginMaven * disable auto publishing in java-gradle-plugin * add java components * remove debug option * disable module metadata generation --- .gitignore | 14 +++----------- app-gradle-plugin/build.gradle.kts | 8 ++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index fedd9796f..e675ebf7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,14 @@ **/*.iml target/ -.idea/modules.xml -.idea/misc.xml -.idea/compiler.xml -.idea/vcs.xml -.idea/uiDesigner.xml -.idea/encodings.xml -.idea/libraries/ -.idea/workspace.xml -.idea/jarRepositories.xml -.idea/codeStyles/Project.xml -.idea/codeStyles/codeStyleConfig.xml +.idea/* .classpath .project .settings/* .metadata/* .DS_Store .checkstyle +.mvn/wrapper/maven-wrapper.jar +app-maven-plugin/installPlugin.txt app-gradle-plugin/.gradle/ app-gradle-plugin/build/ diff --git a/app-gradle-plugin/build.gradle.kts b/app-gradle-plugin/build.gradle.kts index bf8284c45..439f60c88 100644 --- a/app-gradle-plugin/build.gradle.kts +++ b/app-gradle-plugin/build.gradle.kts @@ -141,6 +141,14 @@ release { } } +// disable gradlePlugin auto publishing to avoid duplicate uploads, +// see https://github.com/gradle/gradle/issues/10384 for more info. +gradlePlugin { isAutomatedPublishing = false } + +tasks.withType { + enabled = false +} + publishing { publications { create("mavenJava") {