metafacture / metafacture-core

Core package of the Metafacture tool suite for metadata processing.
https://metafacture.org
Apache License 2.0
69 stars 34 forks source link

Upgrade Gradle wrapper to version 8.6 #520

Closed blackwinter closed 4 months ago

blackwinter commented 4 months ago

Resolves #484. What about secondary objective "Simplify the release process"?

Reviewers: Please verify that all use cases as well as release steps are still working.

Changes:

(See also metafacture/metafacture-fix#57 and metafacture/metafacture-fix#341 as well as Upgrading Gradle 6 to 7 and Upgrading Gradle 7 to 8.)

Wiki changes (after pull request has been merged):


¹ Kept for compatibility purposes, but deprecated.

blackwinter commented 4 months ago

Possible next step: Address Gradle 9 deprecations.

Resolved with afbb5c8.

blackwinter commented 4 months ago

Thanks for testing!

I did notice this log output, but I'm also getting that on master (even twice there):

Hm, I've never seen this message. Still don't.

Did you run on a clean build? Does --refresh-dependencies have any effect?

fsteeg commented 4 months ago

Did you run on a clean build? Does --refresh-dependencies have any effect?

No change with clean and --refresh-dependencies (both on Java 8 and 11).

dr0i commented 4 months ago

Just tested the publishing to oss.sonatype.org to publish it to maven central. However, the publishAllPublicationsToMavenRepository just uploads files ending with .module (and the pom) to oss.sonatype.org, while we need .jar .javadoc and sources.jar (which all correctly appear in the local repo (~/.m2/...). I don't had time to further investigate - you haven't already an idea about why this is so?

Re "signing": yes I would say we should provide that. And the .asc are still generated - look at the the local maven repo :+1: .

blackwinter commented 4 months ago

I don't had time to further investigate - you haven't already an idea about why this is so?

No, I don't have any idea either. It seems to be published correctly to localEmbedded (which may have been the reason for this repository in the first place, to be able to inspect the publication artifacts?):

     29 jar
     29 jar.md5
     29 jar.sha1
     29 jar.sha256
     29 jar.sha512
     29 module
     29 module.md5
     29 module.sha1
     29 module.sha256
     29 module.sha512
     29 pom
     29 pom.md5
     29 pom.sha1
     29 pom.sha256
     29 pom.sha512
     58 xml
     58 xml.md5
     58 xml.sha1
     58 xml.sha256
     58 xml.sha512
dr0i commented 4 months ago

localEmbedded is good to be removed :+1: Switched to the newer gradle-nexus publish-plugin and added signing to distributions. Wiki pages have to be updated accordingly if merged.

blackwinter commented 4 months ago

Wiki pages have to be updated accordingly if merged.

I'm unclear as to what your removal of snapshotRepositoryUrl entails (see b7d0409). Will you update the Maintainer Guidelines? Or can you give me instructions on what to change specifically?

dr0i commented 4 months ago

Re snapshotRepositoryUrl: see https://github.com/gradle-nexus/publish-plugin?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-ossrh . I will update Maintainer Guidelines.

dr0i commented 4 months ago

Updated Maintainer Guidelines.