3 liens privés
It is good practice in Gradle to use lazy configuration. This makes builds faster as only configuration values are evaluated when needed. We should try to not let Gradle spend time on evaluating configuration values that will not be used. For example tasks that are not executed could still be configured by Gradle. If we make sure the configuration of these tasks is lazy we can save time.
Gradle gives us a lazy way to get the value of a Java system property. In our build script we can use the providers property of type ProviderFactory and the method systemProperty(String). This method returns a Provider<String> instance that can be used to get the value of a system property in a lazy way. The method systemProperty can also be used with a Provider<String> argument.
In the following example we register two tasks that print the value of the Java system property user.name to the console. We use lazy configuration to make sure the value of the system property is only fetched when the task is executed.
It is good practice in Gradle to use lazy configuration. This makes builds faster as only configuration values are evaluated when needed. We should try to not let Gradle spend time on evaluating configuration values that will not be used. For example tasks that are not executed could still be configured by Gradle. If we make sure the configuration of these tasks is lazy we can save time.
Gradle gives us a lazy way to get the value of an environment variable. In our build script we can use the providers property of type ProviderFactory and the method environmentVariable(String). This method returns a Provider<String> instance that can be used to get the value of an environment variable in a lazy way.
Bienvenue sur Shaarli !
Shaarli vous permet de sauvegarder des marque-pages de vos pages favorites, et de les partager avec d'autres, ou de les enregistrer en privé.
Vous pouvez ajouter une description à vos marque-pages, comme celle-ci, et y ajouter des tags.
Créez un nouveau shaare en cliquant sur le bouton +Shaare
, ou en utilisant l'un des outils recommandés (extension de navigateur, application mobile, bookmarklet, REST API, etc.).
Vous pouvez facilement retrouver vos liens, même parmi des milliers, en utilisant le moteur de recherche interne, ou en filtrant par tags (par exemple ce Shaare est taggé avec shaarli
et help
).
Les hashtags comme #shaarli #help sont aussi supportés.
Vous pouvez aussi filtrer les flux RSS et mur d'images par tag ou par texte brut.
Nous espérons que vous apprécierez utiliser Shaarli, maintenu avec ❤️ par la communauté !
N'hésitez pas à ouvrir un ticket (en) si vous avez une suggestion ou si vous rencontrez un problème.