Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle 8.2: work around fix for release publishing #3053

Merged
merged 2 commits into from Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Expand Up @@ -10,6 +10,7 @@ buildscript {
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:3.1.0'

classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
// TODO check if https://github.com/shipkit/shipkit-changelog/issues/103 is fixed, and remove workaround in shipkit.gradle.
classpath 'org.shipkit:shipkit-changelog:1.2.0'
classpath 'org.shipkit:shipkit-auto-version:1.2.2'

Expand Down
4 changes: 4 additions & 0 deletions gradle/shipkit.gradle
Expand Up @@ -6,6 +6,10 @@ tasks.named('generateChangelog') {
previousRevision = project.ext.'shipkit-auto-version.previous-tag'
githubToken = System.getenv('GITHUB_TOKEN')
repository = 'mockito/mockito'
// Workarounds for https://github.com/shipkit/shipkit-changelog/issues/103
doNotTrackState("GenerateChangelogTask tracks the entire repo, which results is locking problems hashing the .gradle folder.")
// GenerateChangelogTask uses the entire repo as input, which means it needs to "depend on" all other tasks' outputs.
mustRunAfter(allprojects.collectMany { it.tasks }.grep { it.path != ":generateChangelog" && it.path != ":githubRelease" })
}

tasks.named("githubRelease") {
Expand Down
1 change: 1 addition & 0 deletions subprojects/extTest/extTest.gradle
Expand Up @@ -16,6 +16,7 @@ dependencies {
testImplementation libraries.junitJupiterApi
testRuntimeOnly libraries.junitJupiterEngine
testRuntimeOnly libraries.junitVintageEngine
testRuntimeOnly libraries.junitPlatformLauncher
}

tasks.withType(Test) {
Expand Down