Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 759 for applyTo (0.23 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

     * }
     * ```
     * If you need to apply a plugin imperatively, please use apply<PluginType>() or apply(plugin = "id") instead.
     * ```
     * project(":core") {
     *   apply(plugin = "java")
     * }
     * ```
     * @since 6.0
     */
    @Suppress("unused", "DeprecatedCallableAddReplaceWith")
    @Deprecated(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            """)
            settingsFile << """
                include("a")
                include("b")
                rootProject.name = "root"
            """
            apply(testDirectory)
            apply(file("a"))
            apply(file("b"))
    
            // Prebuild buildSrc
            server.expect("configure-root")
            server.expect("configure-a")
            server.expect("configure-b")
            run()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

            def includedBuild = singleProjectBuild("includedBuild") {
                buildFile << """
                    apply plugin: 'java'
                """
            }
            def consumer = singleProjectBuild("consumer") {
                buildFile << """
                    apply plugin: 'java'
    
                    dependencies {
                        implementation "org.test:includedBuild:1.0"
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r56/ClosedProjectSubstitutionCrossVersionSpec.groovy

            setup:
            multiProjectBuildInRootFolder("root", ["child1", "child2"]) {
                buildFile << """
                subprojects {
                    apply plugin: 'java-library'
                }
                project(":child2") {
                    apply plugin: 'eclipse'
                    configurations {
                        toRemove
                    }
                    eclipse {
                        classpath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/jvm/language-java/src/integTest/groovy/org/gradle/jvm/toolchain/JavaToolchainDownloadSpiIntegrationTest.groovy

            settingsFile << """
                ${applyToolchainResolverPlugin("CustomToolchainResolver", customToolchainResolverCode())}
            """
    
            buildFile << """
                apply plugin: "java"
    
                java {
                    toolchain {
                        languageVersion = JavaLanguageVersion.of(99)
                        vendor = JvmVendorSpec.matching("exotic")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 10:53:57 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ProjectDependencyResolveIntegrationTest.groovy

            file('a/build.gradle') << '''
                apply plugin: 'base'
                configurations { compile }
                dependencies { compile project(path: ':b', configuration: 'compile') }
                task aJar(type: Jar) { }
                gradle.taskGraph.whenReady { project.version = 'late' }
                artifacts { compile aJar }
    '''
            file('b/build.gradle') << '''
                apply plugin: 'base'
                version = 'early'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/custom_plugins.adoc

    The `Project` object is passed as a parameter in `apply()`, which the plugin can use to configure the project however it needs to (such as adding tasks, configuring dependencies, etc.).
    In this example, the plugin is written directly in the build file which is *not a recommended practice*.
    
    When the plugin is written in a separate script file, it can be applied using `apply(from = "file_name.gradle.kts")` or `apply from: 'file_name.gradle'`.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 21:49:49 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

                    }
                """
            }
        }
    
        def 'can aggregate unit test results from dependent projects'() {
            given:
            file('application/build.gradle') << '''
                apply plugin: 'org.gradle.test-report-aggregation'
            '''
    
            when:
            succeeds(':application:testAggregateTestReport')
    
            then:
            result.assertTaskExecuted(":application:test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

                ignoringUnexpectedInputs()
            }
            outputContains("apply = $value")
            outputContains("task = $value")
    
            when:
            configurationCacheRunLenient "thing", "-DCI=$value"
    
            then:
            configurationCache.assertStateLoaded()
            problems.assertResultHasProblems(result)
            outputDoesNotContain("apply =")
            outputContains("task = $value")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        socketFactory[ipv6] = server1.inetSocketAddress
        socketFactory[ipv4] = server2.inetSocketAddress
    
        client =
          client.newBuilder()
            .fastFallback(false)
            .apply {
              retryOnConnectionFailure = false
            }
            .build()
    
        executeSynchronously(request)
          .assertFailureMatches("stream was reset: REFUSED_STREAM")
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue May 14 17:48:07 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top