Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 270 for greetings (0.24 sec)

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

    /**
     * A simple 'hello world' plugin.
     */
    class ${className.javaIdentifier} implements Plugin<Project> {
        void apply(Project project) {
            // Register a task
            project.tasks.register("greeting") {
                doLast {
                    println("Hello from plugin '${pluginId.value}'")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 445 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/mavenMigration/profiles/groovy/build.gradle

    if (!hasProperty('buildProfile')) ext.buildProfile = 'default'  // <1>
    
    apply from: "profile-${buildProfile}.gradle"  // <2>
    
    tasks.register('greeting') {
        // Store the message into a variable, because referencing extras from the task action
        // is not compatible with the configuration cache.
        def message = project.message
        doLast {
            println message  // <3>
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 387 bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/kotlin/Plugin.kt.template

    /**
     * A simple 'hello world' plugin.
     */
    class ${className.javaIdentifier}: Plugin<Project> {
        override fun apply(project: Project) {
            // Register a task
            project.tasks.register("greeting") { task ->
                task.doLast {
                    println("Hello from plugin '${pluginId.value}'")
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 457 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/annotationForFunctionOutOfCodeGenTarget2.ir.txt

        FUN name:Greeting visibility:public modality:FINAL <> () returnType:kotlin.String
          annotations:
            MyComposable
          BLOCK_BODY
            RETURN type=kotlin.Nothing from='public final fun Greeting (): kotlin.String declared in <root>'
              STRING_CONCATENATION type=kotlin.String
                CONST String type=kotlin.String value="Hi "
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Mar 26 07:06:11 UTC 2024
    - 580 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/mavenMigration/profiles/kotlin/build.gradle.kts

    val buildProfile: String? by project  // <1>
    
    apply(from = "profile-${buildProfile ?: "default"}.gradle.kts")  // <2>
    
    tasks.register("greeting") {
        // Store the message into a variable, because referencing extras from the task action
        // is not compatible with the configuration cache.
        val message = project.extra["message"]
        doLast {
            println(message)  // <3>
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 390 bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/kotlin/kotlintest/PluginFunctionalTest.kt.template

                }
            """.trimIndent())
    
            // Run the build
            val runner = GradleRunner.create()
            runner.forwardOutput()
            runner.withPluginClasspath()
            runner.withArguments("greeting")
            runner.withProjectDir(projectDir)
            val result = runner.build()
    
            // Verify the result
            assertTrue(result.output.contains("Hello from plugin '${pluginId.value}'"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/base/customExternalTask/groovy/task/src/test/groovy/org/gradle/GreetingTaskTest.groovy

    import static org.junit.Assert.*
    
    // tag::test-task[]
    class GreetingTaskTest {
        @Test
        void canAddTaskToProject() {
            Project project = ProjectBuilder.builder().build()
            def task = project.task('greeting', type: GreetingTask)
            assertTrue(task instanceof GreetingTask)
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 440 bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/Plugin.java.template

    /**
     * A simple 'hello world' plugin.
     */
    public class ${className.javaIdentifier} implements Plugin<Project> {
        public void apply(Project project) {
            // Register a task
            project.getTasks().register("greeting", task -> {
                task.doLast(s -> System.out.println("Hello from plugin '${pluginId.value}'"));
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 471 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/customPlugins/customPluginWithAdvancedConvention/kotlin/build.gradle.kts

        val greeter: Property<String>
    }
    
    class GreetingPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            val extension = project.extensions.create<GreetingPluginExtension>("greeting")
            project.task("hello") {
                doLast {
                    println("${extension.message.get()} from ${extension.greeter.get()}")
                }
            }
        }
    }
    
    apply<GreetingPlugin>()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 601 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/plugins/customPlugin/kotlin/java-gradle-plugin/build.gradle.kts

    }
    
    dependencies {
        testImplementation("junit:junit:4.13")
    }
    
    // tag::use-and-configure-plugin[]
    gradlePlugin {
        plugins {
            create("simplePlugin") {
                id = "org.example.greeting"
                implementationClass = "org.example.GreetingPlugin"
            }
        }
    }
    // end::use-and-configure-plugin[]
    
    publishing {
        repositories {
            maven {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 721 bytes
    - Viewed (0)
Back to top