Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: gradle/actions/setup-gradle@v5
with:
gradle-version: ${{ matrix.gradle-version }}
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Build Plugin
run: gradle build
- name: Sample Analysis
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: Build Plugin
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Graph Analytics Plugin

[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://community.develocity.cloud/scans?search.rootProjectNames=graph-analytics-plugin)

## About This Project

This [Gradle](https://gradle.org/) plugin was designed to be used in multi-module
Expand Down
27 changes: 24 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ pluginManagement {
}

plugins {
id("com.gradle.develocity") version("4.0.2")
id("com.gradle.develocity") version("4.5.0")
id("com.gradle.common-custom-user-data-gradle-plugin") version("2.8.0")
}

dependencyResolutionManagement {
Expand All @@ -19,9 +20,29 @@ dependencyResolutionManagement {

rootProject.name = "graph-analytics-plugin"

val isCI = System.getenv("CI") != null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we need to add this to the workflows as well, in order for CI to be detected properly


develocity {
server = "https://community.develocity.cloud"
projectId = "ebay"
buildScan {
termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use")
termsOfUseAgree.set("yes")
uploadInBackground = !isCI
publishing.onlyIf { it.isAuthenticated }
obfuscation {
ipAddresses { addresses -> addresses.map { _ -> "0.0.0.0" } }
}
}
}

buildCache {
local {
isEnabled = true
}

remote(develocity.buildCache) {
isEnabled = true
// Check access key presence to avoid build cache errors on PR builds when access key is not present
val accessKey = System.getenv("DEVELOCITY_ACCESS_KEY")
isPush = isCI && accessKey != null
}
}