diffplug / diffplug/cache-horizon
What's left to make this work
- Langage dominant
- Java
- Étoiles
- 0
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
There are two open questions:
1) **Does gradle let you disable a task during task execution?** That's our whole premise, so hopefully the answer to this is yes!
https://github.com/diffplug/cache-horizon/blob/13424bc79e322285c8f8916700109874e24edaf2/src/main/java/com/diffplug/cachehorizon/CacheHorizonPlugin.java#L131-L135
2) **How can we implement `boolean isCachedOrUpToDate(Task task)`?**
This is how far we got, by copying out the relevant-looking parts of Gradle's task execution. It definitely doesn't work as written, but it points towards the internal APIs that Gradle uses for this.
https://github.com/diffplug/cache-horizon/blob/13424bc79e322285c8f8916700109874e24edaf2/src/main/java/com/diffplug/cachehorizon/CacheHorizonPlugin.java#L139-L203
That's as far as we got, and as far as we are likely to get for the foreseeable future. We're happy to merge PRs and add committers here if you don't want to deal with publishing and maintaining, also we're also happy to shut this project down and link to yours if you find a way forward and want to maintain it.
Our intent is to use this issue as the "forum" for solving the two questions above, or for linking out to other solutions that frame the problem differently.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par les lignes 131-135 et 139-203 de CacheHorizonPlugin.java, puis étudiez les APIs d’exécution des tâches de Gradle référencées par l’implémentation copiée. Déterminez si une tâche peut être désactivée pendant son exécution et comment implémenter isCachedOrUpToDate(Task task) ; le travail est terminé lorsque les deux questions ont reçu des réponses validées et que le comportement du plugin fonctionne.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- build-system, tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100