Skip to content

Upgradle to 9.0.0 #1930

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

Merged
merged 2 commits into from
Aug 11, 2025
Merged

Upgradle to 9.0.0 #1930

merged 2 commits into from
Aug 11, 2025

Conversation

liutikas
Copy link
Collaborator

@liutikas liutikas commented Aug 7, 2025

It also bumps the version of oss-licenses-plugin to pick up a fix for google/play-services-plugins#309

Gradle 9.0.0 has the new enforcement that Test task runs that
have sources but no tests run should fail. Without this change we get

Execution failed for task ':core:analytics:testDemoDebugUnitTest'.

> There are test sources present and no filters are applied, but the test task did not discover any tests to execute. This is likely due to a misconfiguration. Please check your test configuration. If this is not a misconfiguration, this error can be disabled by setting the 'failOnNoDiscoveredTests' property to false.

We get this because before this change AndroidCompose was always setting
isIncludeAndroidResources = true which generates a source to the test
task and in the case of :core:analytics it is the only source.

Instead of setting isIncludeAndroidResources in AndroidCompose move to
setting it in relevant build.gradle.kts files (most already had it)

It also bumps the version of oss-licenses-plugin to pick up a fix for
google/play-services-plugins#309

Test: ./gradlew build
@liutikas liutikas requested a review from dturner as a code owner August 7, 2025 22:10
Gradle 9.0.0 has the new enforcement that Test task runs that
have sources but no tests run should fail. Without this change we get

Execution failed for task ':core:analytics:testDemoDebugUnitTest'.

> There are test sources present and no filters are applied, but the test task did not discover any tests to execute. This is likely due to a misconfiguration. Please check your test configuration. If this is not a misconfiguration, this error can be disabled by setting the 'failOnNoDiscoveredTests' property to false.

We get this because before this change AndroidCompose was always setting
isIncludeAndroidResources = true which generates a source to the test
task and in the case of :core:analytics it is the only source.

Instead of setting isIncludeAndroidResources in AndroidCompose move to
setting it in relevant build.gradle.kts files (most already had it)
@dturner dturner merged commit 8092c60 into android:main Aug 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants