Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for greetings (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildSrcIntegrationTest.groovy

            buildFile << """
                task greeting(type: CustomTask) {
                    greeting = 'yo configuration cache'
                }
            """
            def configurationCache = newConfigurationCacheFixture()
    
            when:
            configurationCacheRun("greeting")
    
            then:
            result.assertTaskExecuted(":buildSrc:jar")
            result.assertTaskExecuted(":greeting")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppLibraryInitIntegrationTest.groovy

            then:
            subprojectDir.file("src/main/cpp").assertHasDescendants(SAMPLE_LIB_CLASS)
            subprojectDir.file("src/main/public").assertHasDescendants("greeting.h")
            subprojectDir.file("src/test/cpp").assertHasDescendants(SAMPLE_LIB_TEST_CLASS)
    
            and:
            subprojectDir.file("src/main/public/greeting.h").text.contains("namespace greeting {")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/junitjupiter/AppTest.kt.template

    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Assertions.assertNotNull
    
    class AppTest {
        @Test
        fun appHasAGreeting() {
            val classUnderTest = App()
            assertNotNull(classUnderTest.greeting, "app should have a greeting")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 06:44:27 UTC 2024
    - 319 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/GroovyApplicationInitIntegrationTest.groovy

            and:
            commonJvmFilesGenerated(scriptDsl)
    
            when:
            run("build")
    
            then:
            assertTestPassed("org.example.AppTest", "application has a greeting")
    
            when:
            run("run")
    
            then:
            outputContains("Hello World!")
    
            where:
            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/ScalaApplicationInitIntegrationTest.groovy

            and:
            commonJvmFilesGenerated(scriptDsl)
    
            when:
            run("build")
    
            then:
            assertTestPassed("org.example.AppSuite", "App has a greeting")
    
            when:
            run("run")
    
            then:
            outputContains("Hello, world!")
    
            where:
            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/bootstrap/DaemonStartupCommunication.java

            //ibm vm 1.6 + windows XP gotchas:
            //we need to print something else to the stream after we print the daemon greeting.
            //without it, the parent hangs without receiving the message above (flushing does not help).
            LOGGER.debug("Completed writing the daemon greeting. Closing streams...");
            //btw. the ibm vm+winXP also has some issues detecting closed streams by the child but we handle this problem differently.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/BuildLogicChangeFixture.groovy

                        }
                    """
                    break
                case Language.KOTLIN:
                    writeSourceFile "kotlin", "${className}.kt", """
                        open class ${className} : ${DefaultTask.name}() {
                            @${TaskAction.name} fun greet() { println("${greeting}") }
                        }
                    """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top