Skip to content

Commit

Permalink
chore: remove multiple uploads (#985)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JoeWang1127 committed Jan 26, 2024
1 parent f4c4153 commit 8850c5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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/

8 changes: 8 additions & 0 deletions app-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GenerateModuleMetadata> {
enabled = false
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
Expand Down

0 comments on commit 8850c5c

Please sign in to comment.