-
Notifications
You must be signed in to change notification settings - Fork 384
Downgrade Gradle version #1661
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
Downgrade Gradle version #1661
Changes from all commits
7d48e9a
1eb32b9
b195cce
4b3d30e
ee0ef66
1cf6394
e825c26
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 |
|---|---|---|
|
|
@@ -224,6 +224,21 @@ test { | |
| maxFailures = 30 | ||
| maxRetries = 5 | ||
| } | ||
| jacoco { | ||
| excludes = [ | ||
|
Member
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. Why these dependencies need to be excluded from Jacoco?
Member
Author
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. In JDK17 these class files are not instrumentable (I don't have the background just dealt with the error), had to remove them to prevent test failures. None of these exclusions are classes that we implement in our code, and thus do not need to be instrumented for our coverage statistics |
||
| "com.sun.jndi.dns.*", | ||
| "com.sun.security.sasl.gsskerb.*", | ||
| "java.sql.*", | ||
| "javax.script.*", | ||
| "org.jcp.xml.dsig.internal.dom.*", | ||
| "sun.nio.cs.ext.*", | ||
| "sun.security.ec.*", | ||
| "sun.security.jgss.*", | ||
| "sun.security.pkcs11.*", | ||
| "sun.security.smartcardio.*", | ||
| "sun.util.resources.provider.*" | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| gitProperties { | ||
|
|
@@ -246,16 +261,17 @@ gitProperties { | |
| } | ||
|
|
||
| // copied from: org.opensearch.gradle.dependencies.CompileOnlyResolvePlugin | ||
| project.getConfigurations().all(configuration -> { | ||
| project.getConfigurations().all { Configuration configuration -> | ||
| if (configuration.getName().equals(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME)) { | ||
| NamedDomainObjectProvider<Configuration> resolvableCompileOnly = project.getConfigurations().register('resolveableCompileOnly'); | ||
| resolvableCompileOnly.configure((c) -> { | ||
| resolvableCompileOnly.configure { c -> | ||
| c.setCanBeResolved(true); | ||
| c.setCanBeConsumed(false); | ||
| c.extendsFrom(configuration); | ||
| }); | ||
| }; | ||
| } | ||
| }); | ||
| }; | ||
|
|
||
|
|
||
|
|
||
| task bundle(dependsOn: jar, type: Zip) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
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.
Does JDK17 not support Gradle 6.9?
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.
No it does not
Uh oh!
There was an error while loading. Please reload this page.
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.
Following the example from opensearch-project/common-utils#121