Skip to content

* fixed: robovm build fails if project uses configuration cache - #866

Merged
Tom-Ski merged 1 commit into
MobiVM:masterfrom
dkimitsa:fix/gradle-fail-in-configuration-cache
Aug 10, 2026
Merged

* fixed: robovm build fails if project uses configuration cache#866
Tom-Ski merged 1 commit into
MobiVM:masterfrom
dkimitsa:fix/gradle-fail-in-configuration-cache

Conversation

@dkimitsa

@dkimitsa dkimitsa commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

while robovm plugin doesn't support caching it should not fail build of projects that configured with cache.

steps to reproduce:

./gradlew --configuration-cache launchIPhoneSimulator

exception:

1: Task failed with an exception.
-----------
* What went wrong:
Configuration cache state could not be cached: field `nakedExpressions` of `org.codehaus.plexus.interpolation.PrefixAwareRecursionInterceptor` bean found in field `recursionInterceptor` of `org.apache.maven.model.interpolation.StringSearchModelInterpolator` bean found in field `modelInterpolator` of `org.apache.maven.model.building.DefaultModelBuilder` bean found in field `modelBuilder` of `org.apache.maven.repository.internal.DefaultArtifactDescriptorReader` bean found in field `artifactDescriptorReader` of `org.sonatype.aether.impl.internal.DefaultRepositorySystem` bean found in field `repositorySystem` of task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: error writing value of type 'java.util.Stack'
> 'ObjectOutputStream.putFields' is not supported by the Gradle configuration cache. See https://docs.gradle.org/9.6.1/userguide/configuration_cache_status.html#config_cache:not_yet_implemented:java_serialization for details.

2: Task failed with an exception.
-----------
* What went wrong:
Configuration cache problems found in this build.

3 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/9.6.1/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
- Task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: error writing value of type 'java.util.Stack'

while robovm plugin doesn't support caching it should not fail build of projects that configured with cache.

steps to reproduce:
> ./gradlew  --configuration-cache  launchIPhoneSimulator

exception:
```
1: Task failed with an exception.
-----------
* What went wrong:
Configuration cache state could not be cached: field `nakedExpressions` of `org.codehaus.plexus.interpolation.PrefixAwareRecursionInterceptor` bean found in field `recursionInterceptor` of `org.apache.maven.model.interpolation.StringSearchModelInterpolator` bean found in field `modelInterpolator` of `org.apache.maven.model.building.DefaultModelBuilder` bean found in field `modelBuilder` of `org.apache.maven.repository.internal.DefaultArtifactDescriptorReader` bean found in field `artifactDescriptorReader` of `org.sonatype.aether.impl.internal.DefaultRepositorySystem` bean found in field `repositorySystem` of task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: error writing value of type 'java.util.Stack'
> 'ObjectOutputStream.putFields' is not supported by the Gradle configuration cache. See https://docs.gradle.org/9.6.1/userguide/configuration_cache_status.html#config_cache:not_yet_implemented:java_serialization for details.

2: Task failed with an exception.
-----------
* What went wrong:
Configuration cache problems found in this build.

3 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
  See https://docs.gradle.org/9.6.1/userguide/configuration_cache_requirements.html#config_cache:requirements:disallowed_types
- Task `:launchIPhoneSimulator` of type `org.robovm.gradle.tasks.IPhoneSimulatorTask`: error writing value of type 'java.util.Stack'

```
@dkimitsa dkimitsa added this to the 2.3.26 milestone Aug 10, 2026
@Tom-Ski
Tom-Ski merged commit 349f785 into MobiVM:master Aug 10, 2026
1 check passed
@dkimitsa
dkimitsa deleted the fix/gradle-fail-in-configuration-cache branch August 18, 2026 08:11
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