-
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
Changes from all commits
a017114
fdaf2f5
7b86f2d
e319e0e
02c1202
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 |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. setEnabled has been deprecated |
||
}); | ||
|
||
return checkstyleTask; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
import org.elasticsearch.gradle.internal.conventions.precommit.PrecommitTask; | ||
import org.gradle.api.file.FileCollection; | ||
import org.gradle.api.plugins.JavaPluginConvention; | ||
import org.gradle.api.plugins.JavaPluginExtension; | ||
import org.gradle.api.tasks.CacheableTask; | ||
import org.gradle.api.tasks.Classpath; | ||
import org.gradle.api.tasks.InputFiles; | ||
|
@@ -43,7 +44,7 @@ public LoggerUsageTask(ExecOperations execOperations) { | |
@TaskAction | ||
public void runLoggerUsageTask() { | ||
LoggedExec.javaexec(execOperations, spec -> { | ||
spec.setMain("org.elasticsearch.test.loggerusage.ESLoggerUsageChecker"); | ||
spec.getMainClass().set("org.elasticsearch.test.loggerusage.ESLoggerUsageChecker"); | ||
spec.classpath(getClasspath()); | ||
getClassDirectories().forEach(spec::args); | ||
}); | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. access to convention api has been deprecated |
||
.getSourceSets() | ||
.stream() | ||
// Don't pick up all source sets like the java9 ones as logger-check doesn't support the class format | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. getMain has been deprecated |
||
spec.args("-f", getSignatureFile().getAbsolutePath(), "-d", getJarExpandDir(), "--allowmissingclasses"); | ||
spec.setErrorOutput(errorOut); | ||
if (getLogger().isInfoEnabled() == false) { | ||
|
@@ -364,7 +364,7 @@ private Set<String> runJdkJarHellCheck() throws IOException { | |
getProject().getConfigurations().getByName(CompileOnlyResolvePlugin.RESOLVEABLE_COMPILE_ONLY_CONFIGURATION_NAME) | ||
); | ||
|
||
spec.setMain(JDK_JAR_HELL_MAIN_CLASS); | ||
spec.getMainClass().set(JDK_JAR_HELL_MAIN_CLASS); | ||
spec.args(getJarExpandDir()); | ||
spec.setIgnoreExitValue(true); | ||
if (javaHome != null) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
7.0.2 | ||
7.1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. getExitValue() has been deprecated |
||
int exitValue = LoggedExec.this.getExecutionResult().get().getExitValue(); | ||
if (exitValue != 0) { | ||
try { | ||
LoggedExec.this.getLogger().error("Output for " + LoggedExec.this.getExecutable() + ":"); | ||
outputLogger.accept(LoggedExec.this.getLogger()); | ||
|
@@ -67,7 +68,7 @@ public void execute(Task task) { | |
"Process '%s %s' finished with non-zero exit value %d", | ||
LoggedExec.this.getExecutable(), | ||
LoggedExec.this.getArgs(), | ||
LoggedExec.this.getExecResult().getExitValue() | ||
exitValue | ||
) | ||
); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 |
||
} | ||
} | ||
|
||
|
@@ -124,10 +124,7 @@ Closure commonPackageConfig(String type, boolean oss, boolean jdk, String archit | |
String jdkString = jdk ? "" : "no-jdk-" | ||
String prefix = "${architecture == 'aarch64' ? 'aarch64-' : ''}${oss ? 'oss-' : ''}${jdk ? '' : 'no-jdk-'}${type}" | ||
destinationDirectory = file("${prefix}/build/distributions") | ||
|
||
// 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 commentThe reason will be displayed to describe this comment to others. Learn more. conventionMapping access has been deprecated |
||
String packagingFiles = "build/packaging/${oss ? 'oss-' : ''}${jdk ? '' : 'no-jdk-'}${type}" | ||
|
||
String scripts = "${packagingFiles}/scripts" | ||
|
@@ -278,8 +275,6 @@ Closure commonPackageConfig(String type, boolean oss, boolean jdk, String archit | |
} | ||
} | ||
|
||
apply plugin: 'nebula.ospackage-base' | ||
|
||
// this is package indepdendent configuration | ||
ospackage { | ||
maintainer 'Elasticsearch Team <[email protected]>' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionSha256Sum=13bf8d3cf8eeeb5770d19741a59bde9bd966dd78d17f1bbad787a05ef19d1c2d | ||
distributionSha256Sum=a9e356a21595348b6f04b024ed0b08ac8aea6b2ac37e6c0ef58e51549cd7b9cb |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ case "`uname`" in | |
Darwin* ) | ||
darwin=true | ||
;; | ||
MINGW* ) | ||
MSYS* | MINGW* ) | ||
msys=true | ||
;; | ||
NONSTOP* ) | ||
|
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