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
2 changes: 2 additions & 0 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: PR Build
on:
pull_request:
env:
CI: "true"
jobs:
gradle:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
workflow_dispatch:
release:
types: [published]
env:
CI: "true"
jobs:
gradle:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 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)
[![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%2A)

## About This Project

Expand Down
26 changes: 23 additions & 3 deletions sample/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pluginManagement {

plugins {
id("com.ebay.graph-analytics")
id("com.gradle.develocity") version("4.0.2")
id("com.gradle.develocity") version("4.5.0")
}

dependencyResolutionManagement {
Expand All @@ -21,10 +21,30 @@ dependencyResolutionManagement {

rootProject.name = "graph-analytics-sample"

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

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
}
}

Expand Down