-
Notifications
You must be signed in to change notification settings - Fork 134
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
Conversation
8d4dd8e
to
35f037e
Compare
@@ -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()), |
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.
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) { |
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.
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); |
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.
Flipping the reflection call as we now build with Gradle 7
tasks.named('processResources').configure { | ||
duplicatesStrategy 'include' | ||
} |
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.
I imagine this is due to gradle 7 failing on duplicate plugin resource files
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.
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
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.