-
-
Notifications
You must be signed in to change notification settings - Fork 300
Increase gradle 9 compatibility #7297
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| pluginManagement { | ||
| plugins { | ||
| id("com.gradle.plugin-publish") version("1.2.0") | ||
| id("com.gradle.plugin-publish") version("2.1.1") | ||
| id("dev.hargrave.addmavendescriptor") version("1.1.0") | ||
| id("com.gradle.enterprise") version("3.13.4") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this removed? It enables build scan.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I put it back and updated it to the latest version of the deprecated/legacy plugin. Internet is full of suggestions to move to Develocity - but I agree on your point of staying with ths OSS version. |
||
| id("com.gradle.enterprise") version("3.19.2") | ||
| } | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ import aQute.bnd.osgi.Constants | |
|
|
||
| pluginManagement { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why removed?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. re-introduced with updated version ... same as above |
||
| plugins { | ||
| id "com.gradle.enterprise" version "3.13.4" | ||
| id "com.gradle.enterprise" version "3.19.2" | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -50,20 +50,6 @@ buildscript { | |
| } | ||
| } | ||
|
|
||
| plugins { | ||
| id "com.gradle.enterprise" | ||
| } | ||
|
|
||
| if (Boolean.parseBoolean(System.getenv("CI"))) { | ||
| gradleEnterprise { | ||
| buildScan { | ||
| publishAlways() | ||
| termsOfServiceUrl = "https://gradle.com/terms-of-service" | ||
| termsOfServiceAgree = "yes" | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
Comment on lines
-53
to
-66
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still deleted. Without this, we do not get a scan for each CI biuld.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I first commented, but haven't pushed everything. Please wait for a new "Review request". |
||
| rootProject.name = "bnd" | ||
|
|
||
| gradle.ext.bndWorkspaceConfigure = { workspace -> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This choice can bite us one day. The gradle Manifest interface is really a ProviderType. Consumers like us are not meant to implement it. So we can be easily broken when gradle adds a new (non-default) method which could happen on a non-major version release.
So the trade-off seems to be implement their ProviderType interface and risk class load errors one day, or use the internal implementation class and risk that it is removed one day (probably on a major version release boundary).
That is why I originally implemented this using the internal implementation class since it seemed the least risky.
Another option would be to implement the interface using a dynamic proxy. See https://github.com/eclipse-osgi-technology/osgi-test/blob/main/org.osgi.test.common/src/main/java/org/osgi/test/common/context/CloseableBundleContext.java for an example of this. It is more robust if the ProviderType is extended in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. I will have a look at the dyn proxy option.