Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for greetings (0.22 sec)

  1. platforms/documentation/docs/src/snippets/plugins/greeting/groovy/buildSrc/src/main/groovy/greetings.gradle

        Property<String> getMessage()
    }
    // end::extension[]
    
    // Add the 'greeting' extension object to project
    def extension = project.extensions.create("greeting", GreetingPluginExtension)
    // end::create-extension[]
    
    // Set a default value for 'message'
    extension.message.convention("Hello from Gradle")
    // end::convention[]
    
    // Create a greeting task
    abstract class GreetingTask extends DefaultTask {
        @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 18:30:04 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/plugins/greeting/kotlin/buildSrc/src/main/kotlin/greetings.gradle.kts

        val message: Property<String>
    }
    // end::extension[]
    
    // Add the 'greeting' extension object to project
    val extension = project.extensions.create<GreetingPluginExtension>("greeting")
    // end::create-extension[]
    
    // Set a default value for 'message'
    extension.message.convention("Hello from Gradle")
    // end::convention[]
    
    // Create a greeting task
    abstract class GreetingTask : DefaultTask() {
        @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 18:30:04 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/implementing_gradle_plugins_precompiled.adoc

    ====
    include::sample[dir="snippets/plugins/greeting/kotlin", files="buildSrc/src/main/kotlin/greetings.gradle.kts[tags=update]"]
    include::sample[dir="snippets/plugins/greeting/groovy", files="buildSrc/src/main/groovy/greetings.gradle[tags=update]"]
    ====
    
    If you apply the `greetings` plugin, you can set the convention in your build script:
    
    ====
    include::sample[dir="snippets/plugins/greeting/kotlin", files="app/build.gradle.kts[]"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 20:16:10 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/plugins/greeting/kotlin/app/build.gradle.kts

    // tag::use-plugin[]
    plugins {
        application
        id("greetings")
    }
    // end::use-plugin[]
    
    greeting {
        message = "Hello from Gradle"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 17:10:51 UTC 2024
    - 138 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/plugins/greeting/groovy/app/build.gradle

    // tag::use-plugin[]
    plugins {
        id 'application'
        id('greetings')
    }
    // end::use-plugin[]
    
    configure(greeting) {
        message = "Hello from Gradle"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 17:10:51 UTC 2024
    - 154 bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

            given:
            executer.requireOwnGradleUserHomeDir()
    
            and:
            executer.gradleUserHomeDir.file('init.gradle') << 'println "greetings from user home"'
    
            when:
            run()
    
            then:
            output.contains("greetings from user home")
        }
    
        def "executes init scripts from init.d directory in user home dir in alphabetical order"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                gradle {
                    'one.gradle'('''
                        class Greeter { String toString() { 'Greetings from One!' } }
                        greet.doLast() { println new Greeter() }
                    ''')
    
                    'two.gradle'('''
                        class Greeter { String toString() { 'Greetings from Two!' } }
                        greet.doLast() { println new Greeter() }
                    ''')
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r30/CustomToolingModelCrossVersionSpec.groovy

    import javax.inject.Inject
    
    allprojects {
        apply plugin: CustomPlugin
    }
    
    class CustomModel implements Serializable {
        static final INSTANCE = new CustomThing()
        String getValue() { 'greetings' }
        CustomThing getThing() { return INSTANCE }
        Set<CustomThing> getThings() { return [INSTANCE] }
        Map<String, CustomThing> getThingsByName() { return [child: INSTANCE] }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/launcher/daemon/protocol/DaemonMessageSerializerTest.groovy

            expect:
            def message = new ForwardInput("greetings".bytes)
            def messageResult = serialize(message, serializer)
            messageResult instanceof ForwardInput
            messageResult.bytes == message.bytes
        }
    
        def "can serialize UserResponse messages"() {
            expect:
            def message = new UserResponse("greetings")
            def messageResult = serialize(message, serializer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:54:56 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/plugins/greeting/tests/greeting.out

    Laura Kassovic <******@****.***> 1711045804 -0700
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 18:30:04 UTC 2024
    - 27 bytes
    - Viewed (0)
Back to top