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

v5.1.10 doesn't support confuration cache #89

Open
5peak2me opened this issue Dec 5, 2023 · 3 comments
Open

v5.1.10 doesn't support confuration cache #89

5peak2me opened this issue Dec 5, 2023 · 3 comments
Labels
feature request New feature request

Comments

@5peak2me
Copy link

5peak2me commented Dec 5, 2023

Is your feature request related to a problem? Please describe.

image

Describe the solution you'd like to see

support confuration cache.

Describe alternatives you've considered

No response

Additional context

No response

@5peak2me 5peak2me added the feature request New feature request label Dec 5, 2023
@5peak2me 5peak2me changed the title v5.1.10 don't support confuration cache v5.1.10 doesn't support confuration cache Dec 5, 2023
@yahavi
Copy link
Member

yahavi commented Dec 15, 2023

@5peak2me
Thank you for using the Gradle Artifactory plugin. Starting from version 5.1.3, support for the configuration cache has been added.

For illustration, executing ./gradlew --configuration-cache resulted in the specific output showcased in this example:

➜  gradle-example-publish git:(master) ✗ ./gradlew --configuration-cache 
Starting a Gradle Daemon (subsequent builds will be faster)
Configuration cache is an incubating feature.
Calculating task graph as no configuration cache is available for tasks: 

> Task :help

Welcome to Gradle 7.6.2.

To run a build, run gradlew <task> ...

To see a list of available tasks, run gradlew tasks

To see more detail about a task, run gradlew help --task <task>

To see a list of command-line options, run gradlew --help

For more detail on using Gradle, see https://docs.gradle.org/7.6.2/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

0 problems were found storing the configuration cache.

See the complete report at file:///Users/yahavi/code/project-examples/gradle-examples/gradle-example-publish/build/reports/configuration-cache/1jghqpu3uyirem2tgtyuk3vir/92qe1sqrpur8cabhklk0wsgwf/configuration-cache-report.html

BUILD SUCCESSFUL in 7s
1 actionable task: 1 executed
Configuration cache entry stored.

We go as far as utilizing the --configuration-cache option in our integration tests. You can check out the integration tests code here.

Could you expand on this issue and share additional details or logs?

@5peak2me
Copy link
Author

5peak2me commented Dec 19, 2023

When executing the artifactoryPublish task, the following error occurs

- Task `:artifactoryDeploy` of type `org.jfrog.gradle.plugin.artifactory.task.DeployTask`: cannot deserialize object of type 'org.gradle.api.Task' as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.3/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:core:extractModuleInfo` of type `org.jfrog.gradle.plugin.artifactory.task.ExtractModuleTask`: invocation of 'Task.project' at execution time is unsupported.
- Task `:feature:artifactoryPublish` of type `org.jfrog.gradle.plugin.artifactory.task.ArtifactoryTask`: value '[]' is not assignable to 'org.jfrog.build.extractor.clientConfiguration.ArtifactSpecs'

@beiliubei
Copy link

@5peak2me

./gradlew artifactoryPublish --no-configuration-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

3 participants