- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GreetingTask (0.14 sec)
-
platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/groovy/build.gradle
void apply(Project project) { project.getTasks().register("hello", GreetingTask) { greeter.convention("Greeter") } } } // end::convention-callsites-from-plugin[] apply plugin: GreetingPlugin // tag::convention-callsites-from-buildscript[] tasks.withType(GreetingTask).configureEach { // setting convention from build script guest.convention("Guest") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 16:56:11 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/kotlin/build.gradle.kts
override fun apply(project: Project) { project.getTasks().register<GreetingTask>("hello") { greeter.convention("Greeter") } } } // end::convention-callsites-from-plugin[] // tag::convention-callsites-from-buildscript[] apply<GreetingPlugin>() tasks.withType<GreetingTask>().configureEach { // setting convention from build script guest.convention("Guest") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 16:56:10 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/greeting/groovy/buildSrc/src/main/groovy/greetings.gradle
// end::convention[] // Create a greeting task abstract class GreetingTask extends DefaultTask { @Input abstract Property<String> getMessage() @TaskAction void greet() { println("Message: ${message.get()}") } } // Register the task and set the convention tasks.register("hello", GreetingTask) { message.convention(extension.message) } // end::task[]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 18:30:04 UTC 2024 - 1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/plugins/greeting/kotlin/buildSrc/src/main/kotlin/greetings.gradle.kts
// end::convention[] // Create a greeting task abstract class GreetingTask : DefaultTask() { @Input val message = project.objects.property<String>() @TaskAction fun greet() { println("Message: ${message.get()}") } } // Register the task and set the convention tasks.register<GreetingTask>("hello") { message.convention(extension.message) } // end::task[]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 18:30:04 UTC 2024 - 1.1K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/implementing_gradle_plugins_precompiled.adoc
Using an extension and mapping it to a custom task's input/output properties is common in plugins. In this example, the message property of the `GreetingPluginExtension` is mapped to the message property of the `GreetingTask` as an input: ==== include::sample[dir="snippets/plugins/greeting/kotlin", files="buildSrc/src/main/kotlin/greetings.gradle.kts[tags=task]"]
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 20:16:10 UTC 2024 - 6.7K bytes - Viewed (0)