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

Gradle 6.2 as minimum #251

Merged
merged 6 commits into from
Jul 22, 2023
Merged

Gradle 6.2 as minimum #251

merged 6 commits into from
Jul 22, 2023

Conversation

TWiStErRob
Copy link
Collaborator

As promised, based on #242 (comment)

Doesn't give too many improvements, it actually looks more complicated 😅.

@szpak
Copy link
Contributor

szpak commented Jul 21, 2023

To be honest, I'm not sure about that chance. I'm ambivalent to it. What do you propose?

@@ -54,8 +53,8 @@ class NexusPublishPlugin : Plugin<Project> {
"Plugin must be applied to the root project but was applied to ${project.path}"
}

require(GradleVersion.current() >= GradleVersion.version("6.0")) {
"The plugin requires Gradle version 6.0+"
require(GradleVersion.current() >= GradleVersion.version("6.2")) {
Copy link
Collaborator Author

@TWiStErRob TWiStErRob Jul 21, 2023

Choose a reason for hiding this comment

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

I was rather writing about benefits of bumping required version to 6.2 :-)

If only we had some stats of Gradle version distributions out in the wild, like Android does: https://www.androidauthority.com/wp-content/uploads/2023/06/Android-version-distribution-statistics-May-2023-988w-675h.jpg.webp

It would be a much easier to say "minimum x".

Copy link
Contributor

Choose a reason for hiding this comment

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

I asked about that one friendly Gradle engineer ;-). We will see.

@szpak
Copy link
Contributor

szpak commented Jul 21, 2023

I feel convinced. Bumping from 6.0 to 6.2 should be easy for the majority of projects. Could you resolve the conflicts?

@TWiStErRob
Copy link
Collaborator Author

Will do later.

@TWiStErRob TWiStErRob added this to the 2.0.0 milestone Jul 22, 2023
@TWiStErRob TWiStErRob marked this pull request as ready for review July 22, 2023 08:52
@szpak szpak merged commit 535705a into gradle-nexus:master Jul 22, 2023
@szpak
Copy link
Contributor

szpak commented Jul 22, 2023

I'm afraid, we hit a regression in e2e tests related to the properties handling:
https://scans.gradle.com/s/4b3c4szjffcbg/tests/overview?outcome=failed

Caused by: java.lang.RuntimeException: Failed to create staging repository, server at https://oss.sonatype.org/service/local/ responded with status code 401, body:

However, as we do not check authorization (I've just created #256 as possible better regression testing passing credentials to Nexus in general), I'm not sure, if it is a problem with "gradleProperty" or we stopped passing credentials to Nexus at all (rather not).

I plan to debug the e2e tests tomorrow to find out.

@TWiStErRob TWiStErRob deleted the gradle62 branch July 22, 2023 23:04
@TWiStErRob
Copy link
Collaborator Author

Could the regression be this one from another PR?
e37d847

@szpak
Copy link
Contributor

szpak commented Jul 23, 2023

Could the regression be this one from another PR? e37d847

Rather not, e2e tests passed after that commit: https://github.com/gradle-nexus/publish-plugin/actions/runs/5561323077

It started failing after this MR was merged:
https://github.com/gradle-nexus/publish-plugin/actions?query=workflow%3A%22E2E+tests%22

@szpak
Copy link
Contributor

szpak commented Jul 23, 2023

Btw, just in case you would like to test some "risky" change with the e2e tests, it is enough to have the e2e/ branch prefix (and push that branch directly into that repo, not the fork):
https://github.com/gradle-nexus/publish-plugin/blob/master/.github/workflows/e2e.yml#L9

@szpak
Copy link
Contributor

szpak commented Jul 23, 2023

You can also run the workflow manually for any branch in that repo, using the button on the right:
https://github.com/gradle-nexus/publish-plugin/actions/workflows/e2e.yml

image

(I don't know, if it is possible to configure it to execute manually also for - safe - pull requests)

szpak added a commit that referenced this pull request Sep 1, 2023
This reverts commit 535705a.

Workaround for "null" values in credentails. See:
#267
szpak added a commit that referenced this pull request Sep 1, 2023
This reverts commit 535705a.

Workaround for "null" values in credentials. See:
#267
@TWiStErRob TWiStErRob restored the gradle62 branch September 18, 2023 14:29
github-merge-queue bot pushed a commit that referenced this pull request Jan 9, 2024
* Bump minimum version to Gradle 6.1

* Use build service all the way (Gradle 6.1)

* Bump minimum version to Gradle 6.2

* Use providers.gradleProperty (Gradle 6.2)

* forUseAtConfigurationTime compatibility

* Use full plugin name in error message

Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>

* Revert "Use providers.gradleProperty (Gradle 6.2)" to not run into #267

This reverts commit f658356

---------

Co-authored-by: Marcin Zajączkowski <148013+szpak@users.noreply.github.com>
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