Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 270 for greetings (0.14 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/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioSoftwareModelMultiProjectIntegrationTest.groovy

            helloLibProject.projectConfigurations['debug'].includePath == filePath("src/hello/headers", "../greet/src/greetings/headers")
            greetDllProject.projectConfigurations['debug'].includePath == filePath("src/greetings/headers")
            greetLibProject.projectConfigurations['debug'].includePath == filePath("src/greetings/headers")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 26K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryDependenciesIntegrationTest.groovy

            and:
            executedAndNotSkipped ":greetingsSharedLibrary", ":greetingsStaticLibrary"
            sharedLibrary("build/libs/greetings/shared/greetings").assertExists()
            staticLibrary("build/libs/greetings/static/greetings").assertExists()
    
            and:
            try {
                println executable("build/exe/main/main").binaryInfo.listLinkedLibraries()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top