Skip to content

Commit a81c260

Browse files
github-actions[bot]github-actionsgabrielfeo
authored
Bump Develocity API spec version to 2024.2 (#271)
https://docs.gradle.com/enterprise/api-manual/#release_history --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Gabriel Feo <gabriel@gabrielfeo.com>
1 parent 02f25e8 commit a81c260

File tree

4 files changed

+79
-7
lines changed

4 files changed

+79
-7
lines changed

.github/workflows/pr.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ jobs:
5858
- run: mv ./base-ref-checkout/library/build/post-processed-api ./base-ref-api
5959
- name: Diff generated APIs
6060
run: |
61+
diff -ur ./base-ref-api ./pr-ref-api | tee generated-api.patch || true
6162
echo -e '### Generated API diff\n\n```diff' > comment.md
62-
diff -ur ./base-ref-api ./pr-ref-api | tee -a comment.md || true
63+
cat generated-api.patch >> comment.md
6364
echo -e '```' >> comment.md
6465
- name: Find existing comment
6566
uses: peter-evans/find-comment@v3
@@ -75,6 +76,14 @@ jobs:
7576
comment-id: ${{ steps.find-comment.outputs.comment-id }}
7677
body-file: 'comment.md'
7778
edit-mode: replace
79+
# Upload patch as PR artifact with short expiration
80+
- name: Upload generated-api.patch
81+
uses: actions/upload-artifact@v2
82+
with:
83+
name: generated-api.patch
84+
path: generated-api.patch
85+
retention-days: 7
86+
7887

7988
dry-run-publish-javadoc:
8089
uses: ./.github/workflows/publish-javadoc.yml

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
group=com.gabrielfeo
22
artifact=develocity-api-kotlin
3-
version=2024.1.1
4-
develocity.version=2024.1
3+
version=2024.2.0
4+
develocity.version=2024.2
55
repo.url=https://github.com/gabrielfeo/develocity-api-kotlin
66
org.gradle.jvmargs=-Xmx5g
77
org.gradle.caching=true

library/src/test/kotlin/com/gabrielfeo/develocity/api/FakeBuildsApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ class FakeBuildsApi(
1212
val getGradleAttributesCallCount = MutableStateFlow(0)
1313

1414
override suspend fun getBuilds(
15-
since: Long?,
16-
sinceBuild: String?,
1715
fromInstant: Long?,
1816
fromBuild: String?,
1917
reverse: Boolean?,
@@ -22,6 +20,8 @@ class FakeBuildsApi(
2220
query: String?,
2321
models: List<BuildModelName>?,
2422
allModels: Boolean?,
23+
since: Long?,
24+
sinceBuild: String?,
2525
): List<Build> {
2626
getBuildsCallCount.value++
2727
check((reverse ?: maxWaitSecs ?: query ?: models) == null) { "Not supported" }

library/src/testFixtures/kotlin/com/gabrielfeo/develocity/api/FakeDevelocityApiScaffold.kt

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,21 @@ interface FakeBuildsApiScaffold : BuildsApi {
1818
TODO("Not yet implemented")
1919
}
2020

21+
override suspend fun getBazelAttributes(
22+
id: String,
23+
availabilityWaitTimeoutSecs: Int?
24+
): BazelAttributes {
25+
TODO("Not yet implemented")
26+
}
27+
28+
override suspend fun getBazelCriticalPath(
29+
id: String,
30+
availabilityWaitTimeoutSecs: Int?
31+
): BazelCriticalPath {
32+
TODO("Not yet implemented")
33+
}
34+
2135
override suspend fun getBuilds(
22-
since: Long?,
23-
sinceBuild: String?,
2436
fromInstant: Long?,
2537
fromBuild: String?,
2638
reverse: Boolean?,
@@ -29,10 +41,61 @@ interface FakeBuildsApiScaffold : BuildsApi {
2941
query: String?,
3042
models: List<BuildModelName>?,
3143
allModels: Boolean?,
44+
since: Long?,
45+
sinceBuild: String?,
3246
): List<Build> {
3347
TODO("Not yet implemented")
3448
}
3549

50+
override suspend fun getGradleBuildProfileOverview(
51+
id: String,
52+
availabilityWaitTimeoutSecs: Int?
53+
): GradleBuildProfileOverview {
54+
TODO("Not yet implemented")
55+
}
56+
57+
override suspend fun getGradleConfigurationCache(
58+
id: String,
59+
availabilityWaitTimeoutSecs: Int?
60+
): GradleConfigurationCache {
61+
TODO("Not yet implemented")
62+
}
63+
64+
override suspend fun getGradlePlugins(
65+
id: String,
66+
availabilityWaitTimeoutSecs: Int?
67+
): GradlePlugins {
68+
TODO("Not yet implemented")
69+
}
70+
71+
override suspend fun getGradleResourceUsage(
72+
id: String,
73+
availabilityWaitTimeoutSecs: Int?
74+
): GradleResourceUsage {
75+
TODO("Not yet implemented")
76+
}
77+
78+
override suspend fun getMavenBuildProfileOverview(
79+
id: String,
80+
availabilityWaitTimeoutSecs: Int?
81+
): MavenBuildProfileOverview {
82+
TODO("Not yet implemented")
83+
}
84+
85+
override suspend fun getMavenPlugins(
86+
id: String,
87+
availabilityWaitTimeoutSecs: Int?
88+
): MavenPlugins {
89+
TODO("Not yet implemented")
90+
}
91+
92+
override suspend fun getMavenResourceUsage(
93+
id: String,
94+
availabilityWaitTimeoutSecs: Int?
95+
): MavenResourceUsage {
96+
TODO("Not yet implemented")
97+
}
98+
3699
override suspend fun getGradleArtifactTransformExecutions(
37100
id: String,
38101
availabilityWaitTimeoutSecs: Int?,

0 commit comments

Comments
 (0)