Conversation
Explicitly configure `dokkaSourceSets` in `android/lib/build.gradle.kts` to point to `src/main/java`. This resolves the issue where Dokka failed to detect source files in the Android library module, resulting in empty documentation generation.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
This change addresses the "Nothing to document" error in the Dokka generation task for the `lib` module. The `lib` module was missing the `kotlin-android` plugin application, which is required for Dokka to correctly identify Kotlin source sets. This commit adds the `kotlin-android` plugin to `libs.versions.toml`, applies it in `android/lib/build.gradle.kts`, and explicitly configures Dokka to include `src/main/java` as a source root.
Explicitly configure `dokkaSourceSets` in `android/lib/build.gradle.kts` to point to `src/main/java`. This resolves the issue where Dokka failed to detect source files in the Android library module. Reverted the attempt to add `kotlin-android` plugin as it conflicts with AGP 9.0+.
Explicitly configure `dokkaSourceSets` in `android/lib/build.gradle.kts` to point to `src/main/java`. This resolves the issue where Dokka failed to detect source files in the Android library module. Removed `kotlin-android` plugin definition as it is not required with AGP 9.0+.
Explicitly configure `dokkaSourceSets` in `android/lib/build.gradle.kts` to point to `src/main/java`. This resolves the issue where Dokka failed to detect source files in the Android library module. Removed `kotlin-android` plugin definition as it is not required with AGP 9.0+.
Downgrade Android Gradle Plugin to 8.7.3 and Kotlin to 2.1.0 to ensure stability and compatibility with Dokka documentation generation. Upgrade Dokka to 2.1.0 and enable V2 plugin mode (via `gradle.properties`). Update `compileSdk` and `targetSdk` to 35 in both app and library modules to match AGP 8.7 requirements. This allows usage of `dokkaGeneratePublicationHtml` (V2 task) for documentation generation.
|
I have updated the |
Explicitly set `kotlinOptions.jvmTarget = "11"` in both `app` and `lib` modules to match `compileOptions` (Java 11). This resolves the build failure: "Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (11) and 'compileDebugKotlin' (17)". Also finalized AGP downgrade to 8.7.3 and Dokka upgrade to 2.1.0 (with V2 mode enabled).
|
2026-01-02T06:04:08.1191416Z ##[group]Run ./gradlew lintDebug e: file:///home/runner/work/jp2k-decoder-android/jp2k-decoder-android/android/app/build.gradle.kts:33:5: Unresolved reference 'kotlinOptions'.
[Incubating] Problems report is available at: file:///home/runner/work/jp2k-decoder-android/jp2k-decoder-android/android/build/reports/problems/problems-report.html FAILURE: Build failed with an exception.
2 errors
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/9.1.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. |
The build failure was due to |
Add `kotlin-android` plugin to `android/app/build.gradle.kts`. This is required to access `kotlinOptions` configuration block, which was causing a build failure.
This change ensures that `kotlinOptions { jvmTarget = "11" }` is correctly applied to the app module.
- Update Android Gradle Plugin to 8.13.2 - Update Kotlin to 2.3.0 - Upgrade compileSdk and targetSdk to 36 - Remove deprecated kotlin-android plugin usage - Remove unused appcompat and material dependencies - Update Dokka configuration in library module
The
dokkaHtmltask was reporting "Nothing to document" because it failed to automatically detect the source files located inandroid/lib/src/main/java. This change adds an explicit configuration to theandroid/lib/build.gradle.ktsfile usingtasks.withType<DokkaTask>to set thesourceRootstosrc/main/java. This ensures that Dokka correctly parses the Kotlin files and generates the HTML documentation.PR created automatically by Jules for task 15308418390076005872 started by @keiji