diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index a9b45709..190408a6 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -22,7 +22,7 @@ jobs: ./gradlew build --parallel check-command: true deploy-command: >- - ./gradlew uploadAllPublicationsToMavenCentralNexus close dropStagingRepositoryOnMavenCentral --parallel + ./gradlew uploadAllPublicationsToMavenCentralNexus closeStaging dropStagingRepositoryOnMavenCentral --parallel should-run-codecov: ${{ runner.os == 'Linux' }} should-deploy: >- ${{ diff --git a/build.gradle.kts b/build.gradle.kts index c27eaca8..23826bc8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -120,4 +120,8 @@ subprojects { windowTitle(title) } } + + tasks.sourcesJar { + duplicatesStrategy = DuplicatesStrategy.WARN + } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index ce44ca7a..5a659067 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -37,5 +37,5 @@ xtext-web = [ gitSemVer = "org.danilopianini.git-sensitive-semantic-versioning-gradle-plugin:3.1.7" kotlin-qa = "org.danilopianini.gradle-kotlin-qa:0.78.0" multiJvmTesting = "org.danilopianini.multi-jvm-test-plugin:3.1.2" -publishOnCentral = "org.danilopianini.publish-on-central:7.0.4" +publishOnCentral = "org.danilopianini.publish-on-central:8.0.1" shadowJar = "com.github.johnrengelman.shadow:8.1.1" diff --git a/release.config.mjs b/release.config.mjs index f5a8be44..d2623d41 100644 --- a/release.config.mjs +++ b/release.config.mjs @@ -3,7 +3,7 @@ echo 'Creating shadowJar and protelisdoc...' ./gradlew protelisdoc shadowJar --parallel || ./gradlew shadowJar --parallel || exit 2 echo '...assemblage done.' echo 'Releasing on Maven Central...' -./gradlew uploadAll release --parallel +./gradlew uploadAll releaseStaging --parallel ` import config from 'semantic-release-preconfigured-conventional-commits' with { type: "json" }; config.plugins.push(