Skip to content

Commit

Permalink
Merge branch '8.0.x' of github.com:freefair/android-gradle-plugins in…
Browse files Browse the repository at this point in the history
…to 8.1.x
  • Loading branch information
larsgrefer committed Aug 13, 2023
2 parents 436d86c + ec15047 commit 4a8e886
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
env:
ORG_GRADLE_PROJECT_freefairBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
ORG_GRADLE_PROJECT_freefairBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }}
strategy:
fail-fast: false
steps:
Expand All @@ -30,6 +32,8 @@ jobs:
build-examples:
name: Build example projects
runs-on: ubuntu-latest
env:
ORG_GRADLE_PROJECT_freefairBuildCachePassword: ${{ secrets.BUILD_CACHE_PASSWORD }}
strategy:
fail-fast: false
defaults:
Expand Down
24 changes: 24 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
plugins {
id "io.freefair.settings.plugin-versions" version "8.2.2"
id "com.gradle.enterprise" version "3.14.1"
}

boolean isCiServer = System.getenv().containsKey("CI")

gradleEnterprise {
if (isCiServer) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}

buildCache {
remote(HttpBuildCache) {
url = 'https://build-cache.grefer-hosting.de/cache/'
push = isCiServer
credentials {
username = "freefair"
password = providers.gradleProperty('freefairBuildCachePassword').getOrElse(null)
}
}
}

0 comments on commit 4a8e886

Please sign in to comment.