-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure JetBrains Gradle Enterprise & Build Cache #3446
Conversation
^KT-64916 Fixed
7dbef4e
to
a6f8a13
Compare
f92ca6a
to
14d5a00
Compare
Nope. @IgnatBeresnev this if for you I believe. Also, just a question, how will it affect local development or only CI? AFAIU local build cache will work as before, remote build cache will not be available by default (and will be used only on CI)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build-settings-logic/src/main/kotlin/DokkaBuildSettingsProperties.kt
Outdated
Show resolved
Hide resolved
52793f9
to
e2ae243
Compare
Remote Build Cache will always be enabled, but in read-only mode. TeamCity has the Build Cache credentials, and so 'push' is enabled. For local development this will help by being able to re-use the build results from CI. (Build Scan is opt-in, and is disabled by default.) |
But |
|
🤦, somehow missed it, sorry... |
No problem, thanks! |
build-settings-logic/src/main/kotlin/dokkasettings.gradle-enterprise.settings.gradle.kts
Outdated
Show resolved
Hide resolved
build-settings-logic/src/main/kotlin/dokkasettings.gradle-enterprise.settings.gradle.kts
Outdated
Show resolved
Hide resolved
* [Gradle] configure JetBrains Gradle Enterprise & Build Cache ^KT-64916 Fixed
Use JetBrains Gradle Enterprise for builds.
This should improve the build speeds both for local development and on CI.
Summary
Introduces a new
build-settings-logic
project for settings conventions.It's named so that it's next to the existing
build-logic
.Convention plugins for Build Cache and Gradle Enterprise copied from https://github.com/JetBrains/kotlin/
TODO
Update the readme/contributing guide? What properties are necessary?I added some brief docs. Build Scans aren't as important so I've opted out by default.update TeamCity config to add necessary properties.Dokka has a Build Cache account. I've added the user/pass to TeamCityORG_GRADLE_PROJECT_org.jetbrains.dokka.build.scan.url=https://ge.jetbrains.com/
@IgnatBeresnev are you able to do this? I don't have access to the config.