Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for helloPlugin (0.14 sec)

  1. platforms/documentation/docs/src/docs/userguide/running-builds/introduction/plugin_basics.adoc

    To create your own plugin, you'll typically follow these steps:
    
    1. *Define the plugin class:* create a new class that implements the `Plugin<Project>` interface.
    +
    [source,kotlin]
    ----
    // Define a 'HelloPlugin' plugin
    class HelloPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            // Define the 'hello' task
            val helloTask = project.tasks.register("hello") {
                doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 00:36:58 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top