Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 121 for HelloWorld (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/GradleRunnerManualPluginClasspathInjectionIntegrationTest.groovy

                    }
                }
    
                apply plugin: '$plugin.id'
            """
    
            when:
            runner('helloWorld').build()
    
            then:
            file("out.txt").text == "Hello world!"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. samples/builder/README.md

    It will also build `linux/amd64,linux/arm64` which you can override with `PLATFORMS`.
    
    You can also build a set of images instead of all of them:
    
    ```bash
    docker buildx bake --push examples-helloworld-v1 tcp-echo-server
    ```
    
    ## Updating images
    
    When updating images, increment the version for the image in the `tags` config.
    You will also want to update the sample YAMLs
    
    ## Building official images
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 16 22:03:02 UTC 2024
    - 928 bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/SynchronousGet.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class SynchronousGet {
      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          for ((name, value) in response.headers) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. samples/helloworld/src/app.py

        for i in range(0, 1000000):
            x = x + math.sqrt(x)
    
        return 'Hello version: %s, instance: %s\n' % (version, os.environ.get('HOSTNAME'))
    
    
    @app.route('/health')
    def health():
        return 'Helloworld is healthy', 200
    
    
    if __name__ == "__main__":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 13:44:21 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/AsynchronousGet.kt

    import okhttp3.Request
    import okhttp3.Response
    
    class AsynchronousGet {
      private val client = OkHttpClient()
    
      fun run() {
        val request =
          Request.Builder()
            .url("http://publicobject.com/helloworld.txt")
            .build()
    
        client.newCall(request).enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top