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

Excavator: Update to Gradle 7 #1875

Merged
merged 3 commits into from
Aug 16, 2021
Merged

Excavator: Update to Gradle 7 #1875

merged 3 commits into from
Aug 16, 2021

Conversation

svc-excavator-bot
Copy link
Collaborator

excavator is a bot for automating changes across repositories.

Changes produced by the roomba/gradle7 check.

To enable or disable this check, please contact the maintainers of Excavator.

@@ -199,7 +198,7 @@ private static void configureSourceSet(
checkUnusedDependencies.configure(task -> task.dependsOn(sourceSetUnusedDependencies));
TaskProvider<CheckImplicitDependenciesTask> sourceSetCheckImplicitDependencies = project.getTasks()
.register(
GUtil.toLowerCamelCase("checkImplicitDependencies " + sourceSet.getName()),
Copy link
Contributor

Choose a reason for hiding this comment

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

GUtil is deprecated but usually source sets should already use camel case so this should be equivalent.

@@ -232,14 +231,10 @@ private static String getCompileConfigurationName(SourceSet sourceSet) {
}

private static Map<String, String> excludeRuleAsMap(ExcludeRule rule) {
Builder<String, String> excludeRule = ImmutableMap.builder();
if (rule.getGroup() != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Intellij flags this with Method 'getGroup' inherits annotation from package org.gradle.api.artifacts, thus 'non-null'

Method getRawSourceCompatibility =
org.gradle.api.plugins.internal.DefaultJavaPluginConvention.class.getMethod(
"getRawSourceCompatibility");
return (JavaVersion) getRawSourceCompatibility.invoke(convention);
Copy link
Contributor

Choose a reason for hiding this comment

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

Flipping the reflection call as we now build with Gradle 7

Comment on lines +131 to +133
tasks.named('processResources').configure {
duplicatesStrategy 'include'
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I imagine this is due to gradle 7 failing on duplicate plugin resource files

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. It fails for the plugin resources because they are defined here and here.

Let me add a comment.

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

lgtm

@bulldozer-bot bulldozer-bot bot merged commit 00f34d5 into develop Aug 16, 2021
@bulldozer-bot bulldozer-bot bot deleted the roomba/gradle7 branch August 16, 2021 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants