Skip to content

Releases: gabrielfeo/develocity-api-kotlin

0.16.1

25 May 15:46
02f3727
Compare
Choose a tag to compare
0.16.1 Pre-release
Pre-release

What's Changed

This release fixes an issue of 0.16.0 in which the internal OkHttpClient was eagerly initialized and threw requiring a token. This isn't the intended behavior because when used on internal CLI projects, some CLI users may not have a token on their machine.

Full Changelog: 0.16.0...0.16.1

0.16.0

23 May 20:50
2fcb1a5
Compare
Choose a tag to compare
0.16.0 Pre-release
Pre-release

What's Changed

These are breaking changes, but easy to migrate. Please note the library is still pre-release, as 0.x suggests.

API redesign

Below are examples of how to adapt to the new API. Refer to the latest README and javadoc.

Imports and API calls

-gradleEnterpriseApi.getBuilds(...)
+GradleEnterpriseApi.buildsApi.getBuilds(...)
-gradleEnterpriseApi.createOrUpdateBuildCacheNode(...)
+GradleEnterpriseApi.buildCacheApi.createOrUpdateBuildCacheNode(...)
-import com.gabrielfeo.gradle.enterprise.api.getBuildsFlow
-gradleEnterpriseApi.getBuildsFlow(...)
+import com.gabrielfeo.gradle.enterprise.api.extension.getBuildsFlow
+GradleEnterpriseApi.buildsApi.getBuildsFlow(...)
-import com.gabrielfeo.gradle.enterprise.api.model.get
-import com.gabrielfeo.gradle.enterprise.api.model.contains
+import com.gabrielfeo.gradle.enterprise.api.extension.get
+import com.gabrielfeo.gradle.enterprise.api.extension.contains
"LOCAL" in gradleAttributes.tags
gradleAttributes.propertyValues["Git commit id"]

Shutdown

-shutdown()
+GradleEnterpriseApi.shutdown()

Configuration via code

-options.cache.cacheEnabled = true
-gradleEnterpriseApi.getBuilds(...)
+val config = Config(cacheConfig = CacheConfig(cacheEnabled = true))
+val api = GradleEnterpriseApi.newInstance(config)
+api.buildsApi.getBuilds(...)

Default HTTP cache dir

The default HTTP cache dir is changed from ${java.io.tmpdir}/gradle-enterprise-api-kotlin-cache to ${user.home}/.gradle-enterprise-api-kotlin-cache`. If you were using the default path and want to keep the old cache contents, you may simply move it to the new location.

# Print the current java.io.tmpdir path
echo 'System.out.println("\n" + System.getProperty("java.io.tmpdir"))' | jshell --feedback concise
# Move it to the new location
mv "<old-tmpdir>/gradle-enterprise-api-kotlin-cache" "$HOME/.gradle-enterprise-api-kotlin-cache"

For motivations, see the original PRs:

Full Changelog: 0.15.1...0.16.0

0.15.1

17 May 12:23
c24cf34
Compare
Choose a tag to compare
0.15.1 Pre-release
Pre-release

What's Changed

Full Changelog: 0.15.0...0.15.1

0.16.0-beta

11 May 01:35
11f2722
Compare
Choose a tag to compare
0.16.0-beta Pre-release
Pre-release

What's Changed

Internal changes and updates

Full Changelog: 0.15.0...0.16.0-beta

0.15.0

20 Apr 21:05
dc35d41
Compare
Choose a tag to compare
0.15.0 Pre-release
Pre-release

What's Changed

  • Fix wildcards in Retrofit services and increase read timeout by @gabrielfeo in #40

Full Changelog: 0.14.0...0.15.0

0.14.0

20 Jan 18:43
862c372
Compare
Choose a tag to compare
0.14.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.13.0...0.14.0

0.13.0

12 Jan 12:04
f42b6db
Compare
Choose a tag to compare
0.13.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.12.0...0.13.0

0.12.0

11 Jan 17:06
3ca525e
Compare
Choose a tag to compare
0.12.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.11.0...0.12.0

0.11.0

05 Jan 14:13
891d796
Compare
Choose a tag to compare
0.11.0 Pre-release
Pre-release

What's Changed

Full Changelog: 0.10.0...0.11.0

0.10.0

04 Jan 18:28
Compare
Choose a tag to compare
0.10.0 Pre-release
Pre-release
Add source links in javadoc