Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adam-enko
Copy link
Member

@adam-enko adam-enko commented Jun 24, 2025

Test DGP against Gradle 9.

  • update tested versions
  • Note: I added a step in TeamCity to install Android SDK 35

Fix #4150

@adam-enko adam-enko added this to the Dokka 2.1.0 milestone Jun 24, 2025
@adam-enko adam-enko added the runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin label Jun 24, 2025
@adam-enko adam-enko self-assigned this Jun 24, 2025
@adam-enko
Copy link
Member Author

I think the only remaining failures are because TeamCity doesn't have Android SDK 35 installed.

org.jetbrains.dokka.it.gradle.AndroidComposeIT.expect Dokka is compatible with Gradle Configuration Cache([3] agp: 8.12.0, composeGradlePlugin: 1.7.0, dgp: 2.0.20-SNAPSHOT, gradle: 9.0.0, kgp: 2.1.21)

[...]

WARNING: The specified Android SDK Build Tools version (34.0.0) is ignored, as it is below the minimum supported version (35.0.0) for Android Gradle Plugin 8.12.0.
Android SDK Build Tools 35.0.0 will be used.
To suppress this warning, remove "buildToolsVersion '34.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (34.0.0) is ignored, as it is below the minimum supported version (35.0.0) for Android Gradle Plugin 8.12.0.
Android SDK Build Tools 35.0.0 will be used.
To suppress this warning, remove "buildToolsVersion '34.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Checking the license for package Android SDK Build-Tools 35 in /home/teamcity/android-sdk-linux/licenses
License for package Android SDK Build-Tools 35 accepted.
Preparing "Install Android SDK Build-Tools 35 v.35.0.0".
Warning: Failed to download package!
"Install Android SDK Build-Tools 35 v.35.0.0" failed.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':core:dokkaGenerateModuleHtml'.
> Failed to install the following SDK components:
      build-tools;35.0.0 Android SDK Build-Tools 35
  Install the missing components using the SDK manager in Android Studio.

@whyoleg
Copy link
Collaborator

whyoleg commented Aug 13, 2025

I think the only remaining failures are because TeamCity doesn't have Android SDK 35 installed.

Can't we just use SDK 34? I thought it's just a configuration option in AGP, or am I missing something?

@adam-enko
Copy link
Member Author

adam-enko commented Aug 13, 2025

Can't we just use SDK 34? I thought it's just a configuration option in AGP, or am I missing something?

AGP 8.12 force-updates to SDK 35:

WARNING: The specified Android SDK Build Tools version (34.0.0) is ignored, as it is below the minimum supported version (35.0.0) for Android Gradle Plugin 8.12.0.

@adam-enko adam-enko changed the title Test Gradle 9 Test DPG against Gradle 9 Aug 14, 2025
@adam-enko adam-enko marked this pull request as ready for review August 14, 2025 16:34
@adam-enko adam-enko requested a review from ALikhachev August 19, 2025 15:50
Copy link
Member

@ALikhachev ALikhachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hope bumping Gradle 8 won't cause any new issues 🤞, otherwise LGTM

@ALikhachev ALikhachev merged commit 9b28448 into master Aug 19, 2025
14 checks passed
@adam-enko adam-enko deleted the adam/v2.1.0/test-gradle-9 branch August 19, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

runner: Gradle plugin An issue/PR related to Dokka's Gradle plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DGPv2: Compatibility with Gradle 9

4 participants