diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 905ce9ca8b..62fc4bdf2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,8 @@ jobs: fail-fast: false matrix: java: [8, 11] + env: + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }} steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index b6b15f2ba0..e263d97231 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,7 @@ atlassian-ide-plugin.xml # NetBeans specific files/directories .nbattrs + +# Gradle Enterprise +test-reports/ +.mvn/.gradle-enterprise/ diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml new file mode 100644 index 0000000000..2fa9d8d615 --- /dev/null +++ b/.mvn/extensions.xml @@ -0,0 +1,34 @@ + + + + + com.gradle + gradle-enterprise-maven-extension + 1.17 + + + com.gradle + common-custom-user-data-maven-extension + 1.11.1 + + diff --git a/.mvn/gradle-enterprise-custom-user-data.groovy b/.mvn/gradle-enterprise-custom-user-data.groovy new file mode 100644 index 0000000000..c7ffb79f88 --- /dev/null +++ b/.mvn/gradle-enterprise-custom-user-data.groovy @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +if (System.env.GITHUB_ACTIONS) { + if (session.goals.size() == 1 && session.goals[0] == 'initialize') { + // omit publishing build scan when the only goal is "initialize" + buildScan.publishOnDemand() + } else { + def jobName = System.env.GITHUB_JOB + buildScan.value('GitHub Actions Job name', jobName) + buildScan.value('GitHub Actions Event name', System.env.GITHUB_EVENT_NAME) + buildScan.value('GitHub Ref name', System.env.GITHUB_REF_NAME) + buildScan.value('GitHub Actor', System.env.GITHUB_ACTOR) + buildScan.link('GitHub Repository', "https://github.com/" + System.env.GITHUB_REPOSITORY) + buildScan.link('GitHub Commit', "https://github.com/" + System.env.GITHUB_REPOSITORY + "/commits/" + System.env.GITHUB_SHA) + buildScan.buildScanPublished { publishedBuildScan -> + new File(System.env.GITHUB_STEP_SUMMARY).withWriterAppend { out -> + out.println("\n[Gradle build scan for ${jobName}](${publishedBuildScan.buildScanUri})\n") + } + } + } +} diff --git a/.mvn/gradle-enterprise.xml b/.mvn/gradle-enterprise.xml new file mode 100644 index 0000000000..86d14f7aff --- /dev/null +++ b/.mvn/gradle-enterprise.xml @@ -0,0 +1,50 @@ + + + + + https://ge.apache.org + false + + + + true + true + true + + #{isFalse(env['GITHUB_ACTIONS'])} + ALWAYS + true + + #{{'0.0.0.0'}} + + + + + #{isFalse(env['GITHUB_ACTIONS'])} + + + false + + +