Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 226 for greetings (0.83 sec)

  1. 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)
  2. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/AbstractFileSystemWatchingIntegrationTest.groovy

        }
    
        static String sourceFileWithGreeting(String greeting) {
            """
                public class Main {
                    public static void main(String... args) {
                        System.out.println("$greeting");
                    }
                }
            """
        }
    
        static String taskWithGreeting(String greeting) {
            """
                import org.gradle.api.*;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:38:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/groovy/my-greeting-app/build.gradle

    plugins {
        id 'org.sample.greeting' version '1.0-SNAPSHOT'
    }
    
    greeting {
        who = 'Bob'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 94 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/ant/useAntTask/kotlin/build.gradle.kts

    tasks.register("hello") {
        doLast {
            val greeting = "hello from Ant"
            ant.withGroovyBuilder {
                "echo"("message" to greeting)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 171 bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/swiftapp/main.swift.template

    ${fileComment.multilineComment}
    class Greeter {
        public func greeting() -> String {
            return "Hello, World!"
        }
    }
    
    let greeter = Greeter()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 177 bytes
    - Viewed (0)
  6. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/App.kt.template

    ${fileComment.multilineComment}${packageDecl.statement}
    class App {
        val greeting: String
            get() {
                return "Hello World!"
            }
    }
    
    fun main() {
        println(App().greeting)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 199 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/ant/useAntTask/groovy/build.gradle

    tasks.register('hello') {
        doLast {
            String greeting = 'hello from Ant'
            ant.echo(message: greeting)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 126 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/build-organization/gradle-plugin/groovy/greeting-plugin/build.gradle

    }
    
    dependencies {
        // Use JUnit test framework for unit tests
        testImplementation 'junit:junit:4.13'
    }
    
    gradlePlugin {
        // Define the plugin
        plugins {
            greeting {
                id = 'com.example.plugin.greeting'
                implementationClass = 'com.example.plugin.GreetingPlugin'
            }
        }
    }
    // end::plugin[]
    
    // Add a source set and a task for a functional test suite
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/kotlin/my-greeting-app/build.gradle.kts

    plugins {
        id("org.sample.greeting").version("1.0-SNAPSHOT")
    }
    
    greeting {
        who = "Bob"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 96 bytes
    - Viewed (0)
  10. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/App.scala.template

    ${fileComment.multilineComment}${packageDecl.statement}
    object App {
      def main(args: Array[String]): Unit = {
        println(greeting())
      }
    
      def greeting(): String = "Hello, world!"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 185 bytes
    - Viewed (0)
Back to top