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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Gradle 7 #7609

Merged
merged 14 commits into from
Dec 20, 2021
Merged

Upgrade to Gradle 7 #7609

merged 14 commits into from
Dec 20, 2021

Conversation

kcibul
Copy link
Contributor

@kcibul kcibul commented Dec 16, 2021

Upgrading to Gradle 7

  • removed all deprecation warnings
  • upgraded shadow and download plugins for compatibility
  • moved to maven-publish (existing maven plugin is deprecated)
  • install/uploadArtifacts are now PublishToMavenLocal/publish respectively (due to above move)

Caveats

  • I was unable to test signing of artifacts fully. I did test it by commenting out the requirement that we only sign release jars published and it did perform the signing.
  • I was unable to test publish to Sonatype as I do not have an account

@@ -411,8 +409,8 @@ def createSymlinks(archivePath, symlinkLocation) {
def createGatkSymlinks(destinationDir, archivePath, suffix, baseJarName, secondaryBaseJarName) {
def finalSuffix = (suffix == "") ? "" : ("-" + suffix)

def symlinkLocation = destinationDir.toString() + "/" + baseJarName + finalSuffix + ".jar"
def symlinkLocation2 = destinationDir.toString() + "/" + secondaryBaseJarName + finalSuffix + ".jar"
def symlinkLocation = destinationDir.getAsFile().get().toString() + "/" + baseJarName + finalSuffix + ".jar"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is strange but I don't know the intended magic way to do it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah -- the destinationDir is a DirectoryProperty which you can turn into a Provider with getAsFile() but to resolve that Provider -> File you call .get()

@kcibul kcibul changed the title Kc gradle6 Upgrade to Gradle 7 Dec 17, 2021
@kcibul kcibul marked this pull request as ready for review December 17, 2021 20:25
Copy link
Member

@lbergelson lbergelson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kcibul 👍

We need to update the readme and wiki with. the new commands but lets do that separately.

@kcibul kcibul merged commit 708df30 into master Dec 20, 2021
@kcibul kcibul deleted the kc_gradle6 branch December 20, 2021 20:08
gbggrant pushed a commit that referenced this pull request Apr 27, 2022
* Initial upgrade to gradle 6.9.1
* update shadow plugin
* change jacoco syntax
* remove most deprecation warnings
* changed compile -> implementation
* more warnings
* fixed shadow jar deps
* removed jCenter
* publishing
* attempt to upgrade to gradle7
* Remove local shadow jar from published components
* updated readme, select correct repo for publish
* add names back to pom

Co-authored-by: Louis Bergelson <louisb@broadinstitute.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants