-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
* "compile" as been deprecated for awhile and has been completely dropped in Gradle 7
* Required since Gradle 7 upgraded to Groovy 3.0 * Added required useJUnitPlatform() line for Spock 2
* uploadArchives is no longer supported by Gradle 7
* jcenter is no longer being updated so it should be last in the repo list
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.
LGTM nit comments
build.gradle
Outdated
@@ -82,6 +82,10 @@ test { | |||
} | |||
} | |||
|
|||
processResources { | |||
// Required by Gradle 7 | |||
duplicatesStrategy(DuplicatesStrategy.EXCLUDE) |
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.
Nit, is this code well code formatted?
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.
Fixed in commit c5e3919
@@ -0,0 +1,31 @@ | |||
package com.onesignal.androidsdk; |
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.
The commit message has some types; maybe you want to update it. 😬
- DefaultVersionSelectorScheme now requires a VersionParser as part of
it's constructor parameters. - This introduced in Gradle 4.7. or 4.8 but the old deprecated
constructor was dropped in 7.0 - Since we want to continue to support Gradle versions older than 4.7
created DefaultVersionSelectorSchemeCompat to handle constructing
a DefaultVersionSelectorScheme instance to handle the fallback logic
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.
Good catches!
Fixed with git rebase -i
on selected reword
and force pushed.
See commit 5c44161 for the fix
* DefaultVersionSelectorScheme now requires a VersionParser as part of it's constructor parameters. * This introduced in Gradle 4.7. or 4.8 but the old deprecated constructor was dropped in 7.0 * Since we want to continue to support Gradle versions older than 4.7 created DefaultVersionSelectorSchemeCompat to handle constructing a DefaultVersionSelectorScheme instance to handle the fallback logic * Removed intersectCompat to always use our VersionCompatHelpers.intersect. - Found out that VersionRangeSelector.intersect was an internal method and was only present from Gradle 4.3 to 4.9. I was not able to find a direct replacement so for consistency always use our VersionCompatHelpers
* Added android.enableD8.desugaring=false as it was required for tests to pass. - Nothing a end user has to change, just the way our tests are setup.
* Use Gradle 6.7.1 instead for this test
0d2156f
to
c5e3919
Compare
Description
One Line Summary
Updated to Gradle 7.0 and fixed a number compatibility issues with the upgrade.
Details
build.gradle
, see commit-by-commit for detailsDefaultVersionSelectorScheme
whichDefaultVersionSelectorSchemeCompat
was added to handle both old a new Gradle versionsThis change is