Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 228 for greetings (0.16 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/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryFlavorsIntegrationTest.groovy

            german
        }
        components {
            greetings(NativeLibrarySpec) {
                binaries.all {
                    if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) {
                        cppCompiler.args("-fPIC");
                    }
                }
            }
            hello(NativeLibrarySpec) {
                binaries.all {
                    lib library: 'greetings', linkage: 'static'
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

                #include <iostream>
                #include "hello.h"
                #include "greetings.h"
    
                void DLL_FUNC sayHello() {
                    std::cout << getHello();
                }
            """)
        ]
    
        SourceFile getGreetingsHeader() {
            sourceFile("headers", "greetings.h", """
                #include <string>
    
                #ifdef _WIN32
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeDependentComponentsIntegrationSpec.groovy

        def setup() {
            settingsFile << "rootProject.name = 'test'"
    
            buildFile << '''
                apply plugin: "cpp"
                model {
                    components {
                        greetings(NativeLibrarySpec) {
                            binaries.all {
                                if (!org.gradle.internal.os.OperatingSystem.current().isWindows()) {
                                    cppCompiler.args("-fPIC");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/tasks/customTaskWithProperty/kotlin/build.gradle.kts

        @get:Input
        abstract val greeting: Property<String>
    
        init {
            greeting.convention("hello from GreetingTask")
        }
    
        @TaskAction
        fun greet() {
            println(greeting.get())
        }
    }
    
    // Use the default greeting
    tasks.register<GreetingTask>("hello")
    
    // Customize the greeting
    tasks.register<GreetingTask>("greeting") {
        greeting = "greetings from GreetingTask"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 483 bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLanguageParallelIntegrationTest.groovy

                            ${name}Hello(NativeLibrarySpec) {
                                sources {
                                    cpp.lib library: '${name}Greetings', linkage: 'static'
                                }
                            }
                            ${name}Greetings(NativeLibrarySpec) {
                                sources {
                                    cpp.lib library: '${name}Hello', linkage: 'api'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/tasks/customTaskWithProperty/groovy/build.gradle

        GreetingTask() {
            greeting.convention('hello from GreetingTask')
        }
    
        @TaskAction
        def greet() {
            println greeting.get()
        }
    }
    
    // Use the default greeting
    tasks.register('hello', GreetingTask)
    
    // Customize the greeting
    tasks.register('greeting',GreetingTask) {
        greeting = 'greetings from GreetingTask'
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 491 bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r16/CustomToolingModelCrossVersionSpec.groovy

    import org.gradle.tooling.provider.model.ToolingModelBuilder
    import javax.inject.Inject
    
    apply plugin: CustomPlugin
    
    class CustomModel implements Serializable {
        String getValue() { 'greetings' }
        Set<CustomThing> getThings() { return [new CustomThing()] }
        Map<String, CustomThing> getThingsByName() { return [thing: new CustomThing()] }
    }
    class CustomThing implements Serializable {
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
Back to top