https://github.com/xwiki/xwiki-commons
Raw File
Tip revision: 677aae50d3bd1aa6227044d5e8159b646af5cded authored by Simon Urli on 21 March 2023, 09:25:51 UTC
[maven-release-plugin] prepare release xwiki-commons-15.2-rc-1
Tip revision: 677aae5
gradle-enterprise.xml
<?xml version="1.0" encoding="UTF-8"?>

<!--
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<gradleEnterprise
    xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
  <server>
    <url>https://ge.xwiki.org</url>
  </server>
  <buildScan>
    <publishIfAuthenticated>true</publishIfAuthenticated>
    <!-- Always publish build scans on CI but on demand for devs so that we don't get false positives on ge.xwiki.org
         due to local changes from users and so that it doesn't pollute the ge.xwiki.org data.
         To force publishing a build scan: -Dscan -->
    <publish>#{env['CI'] == null ? 'ON_DEMAND' : 'ALWAYS'}</publish>
    <captureGoalInputFiles>true</captureGoalInputFiles>
    <!-- Use background scans only locally to avoid potential issues on CI (the ephemeral docker agent could terminate
         as soon as the build is finished and thus the upload may be terminated before it completes) -->
    <backgroundBuildScanUpload>#{env['CI'] == null}</backgroundBuildScanUpload>
  </buildScan>
  <buildCache>
    <!-- Notes:
         * To disable the local build cache on the command line, pass: -Dgradle.cache.local.enabled=false
         * We disable the local build cache on CI since our agents are transients and isolated, and thus it would cost
           more to save the goal outputs since they're not going to be re-used.
    -->
    <local>
      <enabled>#{env['CI'] == null}</enabled>
    </local>
    <remote>
      <!-- Notes:
       * To disable the remote build cache on the command line, pass: -Dgradle.cache.remote.enabled=false
      -->
      <enabled>true</enabled>
      <!-- Only CI jobs are allowed to store build outputs in the remote cache -->
      <storeEnabled>#{env['CI'] != null}</storeEnabled>
      <server>
        <!-- Note: Remote cache authentication is handled in the Maven settings.xml file. The id below is the one
       found in settings.xml -->
        <id>gradleEnterpriseCache</id>
        <!-- We override the default built-in node to use a EU node closer to our CI to reduce the cache lag (and thus
             to make caching more beneficial vs rebuilding) -->
        <url>https://eu-build-cache-ge.xwiki.org/cache/</url>
      </server>
    </remote>
  </buildCache>
</gradleEnterprise>
back to top