Martin
06/18/2024, 8:00 AMThomas Broyer
06/18/2024, 8:07 AMclasses, jar, javadoc for the Java plugin: https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_tasks). Gradle tends to use verbsource setnoun but thirdparty plugins prefer pluginverb (e.g. spotlessApply)
Configurations are generally nouns.Thomas Broyer
06/18/2024, 8:08 AMVampire
06/18/2024, 8:08 AMVampire
06/18/2024, 8:09 AMThomas Broyer
06/18/2024, 8:11 AMgetTaskName as a guide: https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/SourceSet.html#getTaskName(java.lang.String,java.lang.String)Vampire
06/18/2024, 8:11 AMMartin
06/18/2024, 8:15 AMThatβs a highly subjective question.Yea, agreed but also wished there was some guidance for unopinionated persons.
Martin
06/18/2024, 8:18 AMI usually orient at what the built-in plugins do.Makes sense and the
getTaskName is interesting there but also I kind of like having the plugin name in the task. Makes it easy to look up the task like spotlessApply , etc...Martin
06/18/2024, 8:23 AMVampire
06/18/2024, 8:45 AM...DependencySources configurations which get removed again in 2.0.10.Vampire
06/18/2024, 8:46 AMPhilip W
06/18/2024, 10:30 AMMartin
06/18/2024, 10:47 AMAdam
06/19/2024, 4:58 AMAdam
06/19/2024, 9:50 AMtasks.register("pluginTask~internal")Martin
06/19/2024, 12:39 PMVampire
06/19/2024, 1:06 PM