Skip to content
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

Missing task input #1790

Open
ansman opened this issue Jan 10, 2025 · 2 comments
Open

Missing task input #1790

ansman opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@ansman
Copy link
Contributor

ansman commented Jan 10, 2025

Description
The paparazzi.test.resources system property points to the output of writeResourcesTask but it's not registered as an input.

Steps to Reproduce
When using test distribution from Develocity it will fail to run because that file isn't uploaded.

Expected behavior
All inputs should be registered.

Additional information:

  • Paparazzi Version: 1.3.5
  • OS: macOS 15.2
  • Compile SDK: 35
  • Gradle Version: 8.12
  • Android Gradle Plugin Version: 8.7.0

Screenshots
n/a

@ansman ansman added the bug Something isn't working label Jan 10, 2025
@ansman
Copy link
Contributor Author

ansman commented Jan 10, 2025

Fix is simple, just add this to the test task configure block:

inputs
    .file(writeResourcesTask.flatMap { it.paparazziResources })
    .withPropertyName("paparazzi.test.resources")
    .withPathSensitivity(PathSensitivity.NONE)

@ansman
Copy link
Contributor Author

ansman commented Jan 10, 2025

layoutlibResourcesFileCollection is also missing as a task input. Can be fixed by adding:

inputs
    .files(layoutlibResourcesFileCollection)
    .withPropertyName("paparazzi.resources")
    .withPathSensitivity(PathSensitivity.NONE)

@geoff-powell geoff-powell added this to the 2.0.0-alpha02 milestone Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants