Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 270 for greetings (0.2 sec)

  1. 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)
  2. platforms/documentation/docs/src/snippets/base/customExternalTask/kotlin/task/src/main/groovy/org/gradle/GreetingTask.groovy

    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    import org.gradle.api.tasks.Input
    
    class GreetingTask extends DefaultTask {
    
        @Input
        String greeting = 'hello from GreetingTask'
    
        @TaskAction
        def greet() {
            println greeting
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 297 bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/cppapp/app.cpp.template

    ${fileComment.multilineComment}
    #include <iostream>
    #include <stdlib.h>
    #include "app.h"
    
    std::string ${namespace.groovyString}::Greeter::greeting() {
        return std::string("Hello, World!");
    }
    
    int main () {
        ${namespace.groovyString}::Greeter greeter;
        std::cout << greeter.greeting() << std::endl;
        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 323 bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/AppSuite.scala.template

    import org.scalatest.funsuite.AnyFunSuite
    import org.junit.runner.RunWith
    import org.scalatestplus.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class AppSuite extends AnyFunSuite {
      test("App has a greeting") {
        assert(App.greeting() != null)
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 314 bytes
    - Viewed (0)
  5. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top