Skip to content

Commit 6a52f39

Browse files
committed
Enable build scans
1 parent 2946728 commit 6a52f39

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Build and run tests with Gradle
4545
run: |
46-
./gradlew \
46+
./gradlew --scan \
4747
${{ matrix.targets }}
4848
shell: bash
4949

build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,22 @@ dokka {
7575
moduleName.set("PowerSync Kotlin")
7676
}
7777

78+
develocity {
79+
val isPowerSyncCI = System.getenv("GITHUB_REPOSITORY") == "powersync-ja/powersync-kotlin"
80+
81+
buildScan {
82+
// We can't know if everyone running this build has accepted the TOS, but we've accepted
83+
// them for our CI.
84+
if (isPowerSyncCI) {
85+
termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use")
86+
termsOfUseAgree.set("yes")
87+
}
88+
89+
// Only upload build scan if the --scan parameter is set
90+
publishing.onlyIf { false }
91+
}
92+
}
93+
7894
// Serve the generated Dokka documentation using a simple HTTP server
7995
// File changes are not watched here
8096
tasks.register("serveDokka") {

settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ dependencyResolutionManagement {
1515
}
1616
}
1717

18+
plugins {
19+
id("com.gradle.develocity") version "4.1"
20+
}
21+
1822
rootProject.name = "powersync-root"
1923

2024
include(":core")

0 commit comments

Comments
 (0)