Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 94 for HelloWorld (0.14 sec)

  1. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/groovy/src/main/groovy/org/gradle/sample/HelloWorldPlugin.groovy

    package org.gradle.sample
    
    import org.gradle.api.Plugin
    import org.gradle.api.Project
    
    class HelloWorldPlugin implements Plugin<Project> {
        void apply(Project project) {
            project.task('helloWorld') {
                doLast {
                    println 'Hello world!'
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 302 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionCustomTestSourceSet/groovy/src/main/groovy/org/gradle/sample/HelloWorldPlugin.groovy

    package org.gradle.sample
    
    import org.gradle.api.Plugin
    import org.gradle.api.Project
    
    class HelloWorldPlugin implements Plugin<Project> {
        void apply(Project project) {
            project.task('helloWorld') {
                doLast {
                    println 'Hello world!'
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 302 bytes
    - Viewed (0)
  3. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/GradleImplDepsCompatibilityIntegrationTest.groovy

                            .withArguments('helloWorld')
                            .withTestKitDir(new java.io.File("${TextUtil.normaliseFileSeparators(executer.gradleUserHomeDir.absolutePath)}"))
                            .build()
    
                        then:
                        result.output.contains('Hello world!')
                        result.task(':helloWorld').outcome == SUCCESS
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/testKit/automaticClasspathInjectionQuickstart/kotlin/src/main/groovy/org/gradle/sample/HelloWorldPlugin.groovy

    package org.gradle.sample
    
    import org.gradle.api.Plugin
    import org.gradle.api.Project
    
    class HelloWorldPlugin implements Plugin<Project> {
        void apply(Project project) {
            project.task('helloWorld') {
                doLast {
                    println 'Hello world!'
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 302 bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractConsoleCompositeBuildGroupedTaskFunctionalTest.groovy

            file("$PROJECT_A_NAME/build.gradle") <<
                """
                    task helloWorld {
                        doLast {
                            logger.quiet 'Hello world'
                        }
                    }
    
                    compileJava.dependsOn helloWorld
                """
            file("$PROJECT_B_NAME/build.gradle") << javaProject()
            file("$PROJECT_B_NAME/build.gradle") <<
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingFromMultipleCustomPluginRepositorySpec.groovy

                plugins {
                    id "org.gradle.hello-world" version "0.2" //exits in the plugin portal
                }
            """
            use(repoA, repoB)
    
            when:
            fails("helloWorld")
    
            then:
            failure.assertThatDescription(containsNormalizedString("""
                - Plugin Repositories (could not resolve plugin artifact 'org.gradle.hello-world:org.gradle.hello-world.gradle.plugin:0.2')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCppHelloWorldApp.groovy

                    #ifdef FRENCH
                    std::cout << greeting() << std::endl;
                    #else
                    NSString *helloWorld = @"${HELLO_WORLD}\\n";
                    NSFileHandle *stdout = [NSFileHandle fileHandleWithStandardOutput];
                    NSData *strData = [helloWorld dataUsingEncoding: NSASCIIStringEncoding];
                    [stdout writeData: strData];
                    #endif
                }
            """),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerConventionalPluginClasspathInjectionEndUserIntegrationTest.groovy

                import spock.lang.Specification
                import spock.lang.TempDir
    
                class Test extends Specification {
    
                    @TempDir File testProjectDir
    
                    def "execute helloWorld task"() {
                        given:
                        new File(testProjectDir, 'settings.gradle') << "rootProject.name = 'plugin-test'"
                        new File(testProjectDir, 'build.gradle') << '''$plugin.useDeclaration'''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/IncrementalScalaCompileIntegrationTest.groovy

                }
                application {
                    mainClass = "HelloWorld"
                }
                dependencies {
                   implementation 'org.scala-lang:scala-library:2.11.12'
                }
            """
    
            file("src/main/scala/Hello.scala") << """
                object HelloWorld {
                  def main(args: Array[String]): Unit = {
                    println("Hello world")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/testKit/testKitFunctionalTestSpockBuildCache/groovy/src/test/groovy/org/gradle/sample/BuildLogicFunctionalTest.groovy

        // tag::functional-test-build-cache[]
        def "cacheableTask is loaded from cache"() {
            given:
            buildFile << """
                plugins {
                    id 'org.gradle.sample.helloworld'
                }
            """
    
            when:
            def result = runner()
                .withArguments( '--build-cache', 'cacheableTask')
                .build()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top