Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 242 for GREETING (0.13 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/groovyapplication/groovy/AppTest.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import spock.lang.Specification
    
    class AppTest extends Specification {
        def "application has a greeting"() {
            setup:
            def app = new App()
    
            when:
            def result = app.greeting
    
            then:
            result != null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 306 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/kotlin/build.gradle.kts

    interface GreetingPluginExtension {
        val message: Property<String>
    }
    
    class GreetingPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            // Add the 'greeting' extension object
            val extension = project.extensions.create<GreetingPluginExtension>("greeting")
            // Add a task that uses configuration from the extension object
            project.task("hello") {
                doLast {
                    println(extension.message.get())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 22:56:31 UTC 2024
    - 608 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/build-organization/sharing-convention-plugins-with-build-logic/kotlin/application/build.gradle.kts

    // tag::plugins[]
    plugins {
        id("myproject.java-conventions")
        // myproject.greeting is implemented in the buildSrc project that has myproject.java-conventions applied as well
        id("myproject.greeting")
        id("application")
    }
    // end::plugins[]
    
    dependencies {
        implementation(project(":utilities"))
    }
    
    application {
        mainClass = "org.gradle.sample.app.Main"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 375 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/base/customExternalTask/kotlin/consumer/build.gradle.kts

    // tag::use-task[]
                url = uri(repoLocation)
            }
        }
        dependencies {
            classpath("org.gradle:task:1.0-SNAPSHOT")
        }
    }
    
    tasks.register<org.gradle.GreetingTask>("greeting") {
        greeting = "howdy!"
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 387 bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppLibraryWithBothLinkagePublishingIntegrationTest.groovy

            debugInstall.exec().out == app.withFeatureDisabled().expectedOutput
            debugInstall.assertIncludesLibraries("greeting")
            def debugLib = sharedLibrary(producer.file("build/lib/main/debug/shared/greeting"))
            sharedLibrary(consumer.file("build/install/main/debug/lib/greeting")).file.assertIsCopyOf(debugLib.file)
    
            when:
            executer.inDirectory(consumer)
            run("installRelease")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/webApplication/quickstart/kotlin/src/main/java/org/gradle/sample/Greeter.java

    import org.apache.commons.io.IOUtils;
    
    public class Greeter {
        public String getGreeting() throws Exception {
            LogManager.getRootLogger().info("generating greeting.");
            InputStream greetingStr = getClass().getResourceAsStream("/greeting.txt");
            try {
                return IOUtils.toString(greetingStr).trim();
            }
            finally {
                greetingStr.close();
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 503 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/customPlugins/customPluginWithConvention/groovy/build.gradle

    interface GreetingPluginExtension {
        Property<String> getMessage()
    }
    
    class GreetingPlugin implements Plugin<Project> {
        void apply(Project project) {
            // Add the 'greeting' extension object
            def extension = project.extensions.create('greeting', GreetingPluginExtension)
            extension.message.convention('Hello from GreetingPlugin')
            // Add a task that uses configuration from the extension object
            project.task('hello') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 22:56:31 UTC 2024
    - 592 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/customPlugins/customPluginWithAdvancedConvention/groovy/build.gradle

            def extension = project.extensions.create('greeting', GreetingPluginExtension)
            project.task('hello') {
                doLast {
                    println "${extension.message.get()} from ${extension.greeter.get()}"
                }
            }
        }
    }
    
    apply plugin: GreetingPlugin
    
    // Configure the extension using a DSL block
    greeting {
        message = 'Hi'
        greeter = 'Gradle'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 579 bytes
    - Viewed (0)
  9. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/composableFunctionMultiModules2.kt

    }
    
    // MODULE: main(lib)
    // FILE: main.kt
    import org.jetbrains.kotlin.fir.plugin.MyComposable
    import p3.setContent
    
    fun test(): Int {
        return setContent {
            Greeting("test")
        }
    }
    
    @MyComposable
    fun Greeting(name: String) {
        show("hi $name!")
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Feb 26 21:57:23 UTC 2024
    - 542 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/groovy/greeting-plugin/src/main/java/org/sample/GreetingPlugin.java

        public void apply(Project project) {
            GreetingExtension extension = project.getExtensions().create("greeting", GreetingExtension.class);
            extension.getWho().convention("mate");
            TaskProvider<GreetingTask> task = project.getTasks().register("greeting", GreetingTask.class, t -> {
                t.getWho().convention(extension.getWho());
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 595 bytes
    - Viewed (0)
Back to top