-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Update Gradle wrapper to 7.1 #73941
Update Gradle wrapper to 7.1 #73941
Conversation
a7373f5
to
1636971
Compare
54966c5
to
02c1202
Compare
@@ -48,7 +48,7 @@ public void apply(Project project) { | |||
File heapdumpDir = new File(project.getBuildDir(), "heapdump"); | |||
|
|||
project.getTasks().withType(Test.class).configureEach(test -> { | |||
File testOutputDir = new File(test.getReports().getJunitXml().getDestination(), "output"); | |||
File testOutputDir = new File(test.getReports().getJunitXml().getOutputLocation().getAsFile().get(), "output"); |
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.
getDestination has been deprecated
@@ -94,7 +94,7 @@ public void execute(Task task) { | |||
|
|||
project.getTasks().withType(Checkstyle.class).configureEach(t -> { | |||
t.dependsOn(copyCheckstyleConf); | |||
t.reports(r -> r.getHtml().setEnabled(false)); | |||
t.reports(r -> r.getHtml().getRequired().set(false)); |
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.
setEnabled has been deprecated
@@ -62,8 +63,7 @@ public void setClasspath(FileCollection classpath) { | |||
@PathSensitive(PathSensitivity.RELATIVE) | |||
@SkipWhenEmpty | |||
public FileCollection getClassDirectories() { | |||
return getProject().getConvention() | |||
.getPlugin(JavaPluginConvention.class) | |||
return getProject().getExtensions().getByType(JavaPluginExtension.class) |
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.
access to convention api has been deprecated
@@ -334,7 +334,7 @@ private String runForbiddenAPIsCli() throws IOException { | |||
getProject().getConfigurations().getByName(CompileOnlyResolvePlugin.RESOLVEABLE_COMPILE_ONLY_CONFIGURATION_NAME) | |||
); | |||
spec.jvmArgs("-Xmx1g"); | |||
spec.setMain("de.thetaphi.forbiddenapis.cli.CliMain"); | |||
spec.getMainClass().set("de.thetaphi.forbiddenapis.cli.CliMain"); |
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.
getMain has been deprecated
@@ -55,7 +55,8 @@ public LoggedExec(FileSystemOperations fileSystemOperations) { | |||
doLast(new Action<Task>() { | |||
@Override | |||
public void execute(Task task) { | |||
if (LoggedExec.this.getExecResult().getExitValue() != 0) { |
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.
getExitValue() has been deprecated
@@ -48,7 +48,7 @@ buildscript { | |||
maven { url 'https://jitpack.io' } | |||
} | |||
dependencies { | |||
classpath "com.github.breskeby:gradle-ospackage-plugin:ddb72a9922b934033827d48d296f7f3d470ac422" | |||
classpath "com.github.breskeby:gradle-ospackage-plugin:98455c1" |
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 is a snaspshot reference to the ospackage plugin containing the changes of this provided PR nebula-plugins/gradle-ospackage-plugin#400
// SystemPackagingTask overrides default archive task convention mappings, but doesn't provide a setter so we have to override the convention mapping itself | ||
conventionMapping.archiveFile = { objects.fileProperty().fileValue(file("${destinationDirectory.get()}/${packageName}-${project.version}-${jdkString}${archString}.${type}")) } | ||
|
||
archiveFileName.value(project.provider({ "${packageName}-${project.version}-${jdkString}${archString}.${type}" } )) |
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.
conventionMapping access has been deprecated
Pinging @elastic/es-delivery (Team:Delivery) |
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
- Fix new introduced deprecated usages - Update to newer ospackage snapshot to include provided PR for fixing deprecated usage This gradle release comes with improvements on incremental compilation which we should benefit from
This gradle release comes with improvements on incremental compilation which we should benefit from