Skip to content

Commit

Permalink
Fix gradle 8 publishing issue (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshakir authored Jul 28, 2023
1 parent 47094da commit f11cbd0
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,6 @@ group = 'com.github.broadinstitute'

defaultTasks 'all'

distZip {
dependsOn 'currentJar'
}

distTar {
dependsOn 'currentJar'
}

startScripts {
dependsOn 'currentJar'
}

startShadowScripts {
dependsOn 'currentJar'
}

task all(dependsOn: ['jar', 'distZip', 'javadoc', 'shadowJar', 'currentJar', 'picardDoc'])

// Source file names for the picard command line properties file. We select and include only one of
Expand Down Expand Up @@ -416,3 +400,12 @@ gitPublish {
gitPublishCopy {
dependsOn 'updateGhPages', 'copyJavadoc', 'copyPicardDoc'
}

// For Gradle 8 explicitly add 'currentJar' as a dependency of the following tasks.
// For more information, please refer to
// https://docs.gradle.org/8.2.1/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
['distZip', 'distTar', 'startScripts', 'startShadowScripts', 'generateMetadataFileForPicardPublication'].each {
tasks.named(it).configure {
dependsOn 'currentJar'
}
}

0 comments on commit f11cbd0

Please sign in to comment.