Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 68 for greetings (0.2 sec)

  1. platforms/documentation/docs/src/snippets/plugins/greetingPlugin/tests/greeting.out

    Laura Kassovic <******@****.***> 1711088091 -0700
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 06:14:51 UTC 2024
    - 41 bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            def runGreetWith = { String greeting ->
                inDirectory('root')
                switch (systemPropertySource) {
                    case SystemPropertySource.COMMAND_LINE:
                        return configurationCacheRun('greet', "-Dgreeting=$greeting")
                    case SystemPropertySource.GRADLE_PROPERTIES:
                        file('root/gradle.properties').text = "systemProp.greeting=$greeting"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. 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)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy

            def producer = file('producer')
            def consumer = file('consumer')
            def pluginModule = mavenRepo.module('com.example', 'producer', '1.0')
            def pluginMarker = mavenRepo.module('com.example.greeting', 'com.example.greeting.gradle.plugin', '1.0')
    
            producer.file('settings.gradle') << ''
            producer.file('build.gradle') << """
                plugins {
                    id('java-gradle-plugin')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/plugin/devel/variants/TargetJVMVersionOnPluginTooNewFailureDescriberIntegrationTest.groovy

            def producer = file('producer')
            def consumer = file('consumer')
            def pluginModule = mavenRepo.module('com.example', 'producer', '1.0')
            def pluginMarker = mavenRepo.module('com.example.greeting', 'com.example.greeting.gradle.plugin', '1.0')
    
            producer.file('settings.gradle').createFile()
            producer.file('build.gradle') << """
                plugins {
                    id('java-gradle-plugin')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 20:48:53 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr5_build_scripts.adoc

                doLast {
                    println("Hello from plugin 'com.tutorial.greeting'")
                }
            }
        }
    }
    ----
    =====
    
    As we can see, the `license` plugin, when applied, exposes a `greeting` task with a simple print statement.
    
    == Step 5. View Plugin Tasks
    
    When the `license` plugin is applied to the `app` project, the `greeting` task becomes available:
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 17:16:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. 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)
  8. platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/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)
            // Add a task that uses configuration from the extension object
            project.task('hello') {
                doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 22:56:31 UTC 2024
    - 590 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/customPlugins/customPluginWithConvention/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")
            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
    - 588 bytes
    - Viewed (0)
  10. 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)
Back to top