Skip to content

Commit

Permalink
Merge pull request #4111 from rjhancock/java-17
Browse files Browse the repository at this point in the history
Work towards Java 17
  • Loading branch information
HammerGS authored Jun 29, 2024
2 parents 70f9cb4 + fcc420a commit c025250
Show file tree
Hide file tree
Showing 16 changed files with 591 additions and 512 deletions.
23 changes: 6 additions & 17 deletions .github/build-scan-init.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,19 @@ initscript {
def isTopLevelBuild = gradle.getParent() == null

if (isTopLevelBuild) {
def gradleVersion = GradleVersion.current().baseVersion
def atLeastGradle5 = gradleVersion >= GradleVersion.version("5.0")
def atLeastGradle6 = gradleVersion >= GradleVersion.version("6.0")

if (atLeastGradle6) {
settingsEvaluated {
if (!it.pluginManager.hasPlugin("com.gradle.enterprise")) {
it.pluginManager.apply(GradleEnterprisePlugin)
}
configureExtension(it.extensions["gradleEnterprise"])
}
} else if (atLeastGradle5) {
rootProject {
pluginManager.apply(BuildScanPlugin)
configureExtension(extensions["gradleEnterprise"])
settingsEvaluated {
if (!it.pluginManager.hasPlugin("com.gradle.enterprise")) {
it.pluginManager.apply(GradleEnterprisePlugin)
}
configureExtension(it.extensions["gradleEnterprise"])
}
}

void configureExtension(extension) {
extension.buildScan.with {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"

//
// After the build scan is published, put on STDOUT the special
// GitHub Actions syntax to set an Output Variable for the job
Expand All @@ -57,7 +46,7 @@ void configureExtension(extension) {
// ref: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter
//
buildScanPublished { PublishedBuildScan scan ->
println "::set-output name=buildScanUri::${scan.buildScanUri}\n"
echo "name=buildScanUri::${scan.buildScanUri}\n" >> $GITHUB_OUTPUT
}
}
}
11 changes: 5 additions & 6 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ coverage:
status:
project:
default:
target: auto # auto compares coverage to the previous base commit
threshold: 1% # the leniency in hitting the target
informational: true # makes project checks informational only, not failing
target: auto # auto compares coverage to the previous base commit
threshold: 1% # the leniency in hitting the target
informational: true # makes project checks informational only, not failing

patch:
default:
informational: true # makes patch checks informational only, not failing
informational: true # makes patch checks informational only, not failing

fixes:
- "mekhq/::" # reduce root e.g., "before/path/" => "path/"
- "mekhq/::" # reduce root e.g., "before/path/" => "path/"

ignore:
- "megamek"
Expand All @@ -22,4 +22,3 @@ ignore:
github_checks:
# https://docs.codecov.io/docs/github-checks-beta#disabling-github-checks-patch-annotations-via-yaml
annotations: false

Loading

0 comments on commit c025250

Please sign in to comment.