Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GreetingPlugin (0.17 sec)

  1. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy

                        implementationClass = 'example.plugin.GreetingPlugin'
                    }
                }
                publishing {
                    repositories {
                        maven { url = '${mavenRepo.uri}' }
                    }
                }
            """
            producer.file('src/main/java/example/plugin/GreetingPlugin.java') << pluginImplementation('<7.0')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/kotlin/build.gradle.kts

    // setting convention when registering a task from plugin
    class GreetingPlugin : Plugin<Project> {
        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 {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 16:56:10 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/providers/propertyConventionCallsites/groovy/build.gradle

    // setting convention when registering a task from plugin
    class GreetingPlugin implements Plugin<Project> {
        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[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 16:56:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/custom_plugins.adoc

    include::sample[dir="snippets/plugins/greetingPlugin/groovy",files="buildSrc/src/main/groovy/GreetingPlugin.gradle[]"]
    ====
    
    The `GreetingPlugin` can now be applied in other subprojects' builds by using its ID:
    
    ====
    include::sample[dir="snippets/plugins/greetingPlugin/kotlin",files="app/build.gradle.kts[tag=use-plugin]"]
    include::sample[dir="snippets/plugins/greetingPlugin/groovy",files="app/build.gradle[tag=use-plugin]"]
    ====
    
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 21:49:49 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/implementing_gradle_plugins_binary.adoc

    ----
    
    In this example, `GreetingPluginExtension` is a class that represents the convention.
    The message property is the convention property with a default value of 'Hello from GreetingPlugin'.
    
    Users can override this value in their build script:
    
    ====
    [.multi-language-sample]
    =====
    .build.gradle.kts
    [source,kotlin]
    ----
    GreetingPluginExtension {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 29 02:31:44 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top