Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for gradleApi (0.17 sec)

  1. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/AbstractSourcesAndJavadocJarsIntegrationTest.groovy

        def "does not download gradleApi() sources when sources download is disabled"() {
            given:
            executer.withEnvironmentVars('GRADLE_REPO_OVERRIDE': "$server.uri/")
    
            buildScript """
                apply plugin: "java"
                apply plugin: "idea"
                apply plugin: "eclipse"
    
                dependencies {
                    implementation gradleApi()
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/test/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginPluginTest.groovy

        }
    
        def "apply adds gradleApi dependency to api"() {
            when:
            project.pluginManager.apply(JavaGradlePluginPlugin)
    
            then:
            project.configurations
                .getByName(JavaGradlePluginPlugin.API_CONFIGURATION)
                .dependencies.find {
                it.files == project.dependencies.gradleApi().files
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            !stdOut.toString().contains("BUILD SUCCESSFUL")
        }
    
        def "can configure Kotlin DSL project with gradleApi() dependency via tooling API"() {
            given:
            buildKotlinFile << """
            plugins {
                java
            }
    
            dependencies {
                implementation(gradleApi())
            }
            """
    
            when:
            def stdOut = new ByteArrayOutputStream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/artifacts/dsl/DependencyCollectorDslIntegrationTest.groovy

            """
            expect:
            succeeds("help")
    
            where:
            expression << [
                "gradleApi()",
                "gradleTestKit()",
                "localGroovy()",
            ]
        }
    
        def "FileCollectionDependency declared using #expression shows up in related configuration"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 16:23:38 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy

                    copyPluginDescriptors.from(tasks.pluginDescriptors)
                }
                // ==
    
                dependencies {
                    gradle7CompileOnly(gradleApi()) // We should be able to access different Gradle API versions
                    gradle7CompileOnly(localGroovy())
                }
    
                gradlePlugin {
                    plugins.create('greeting') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-development/src/main/java/org/gradle/plugin/devel/plugins/JavaGradlePluginPlugin.java

        static final String GENERATE_PLUGIN_DESCRIPTORS_TASK_NAME = "pluginDescriptors";
        static final String VALIDATE_PLUGINS_TASK_NAME = "validatePlugins";
    
        /**
         * Suppress adding the {@code DependencyHandler#gradleApi()} dependency.
         *
         * Experimental property used to test using an external Gradle API dependency.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 06:56:29 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/AbstractPropertyLanguageInterOpIntegrationTest.groovy

            def otherDir = file("buildSrc/other")
            otherDir.file("build.gradle") << """
                plugins {
                    id("java-library")
                }
                dependencies {
                    api gradleApi()
                    implementation project(":plugin")
                }
            """
    
            otherDir.file("src/main/java/SomeOtherPlugin.java") << """
                import ${Project.name};
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/dependencies/DefaultDependencyHandlerTest.groovy

            Dependency dependency = Mock()
    
            when:
            def result = dependencyHandler.gradleApi()
    
            then:
            result == dependency
    
            and:
            1 * dependencyFactory.createDependency(DependencyFactoryInternal.ClassPathNotation.GRADLE_API) >> dependency
        }
    
        void "creates Gradle test-kit dependency"() {
            Dependency dependency = Mock()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 10:37:21 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginTest.kt

        }
    
        @Test
        @Requires(
            IntegTestPreconditions.NotEmbeddedExecutor::class,
            reason = "Requires a Gradle distribution on the test-under-test classpath, but gradleApi() does not offer the full distribution"
        )
        fun `gradle kotlin dsl api is available for test implementation`() {
    
            withBuildScript(
                """
    
                plugins {
                    `kotlin-dsl`
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/use/AlreadyOnClasspathPluginUseIntegrationTest.groovy

                            implementationClass = "my.MyPlugin"
                        }
                    }
                }
    
                dependencies {
                    compileOnly(gradleApi())
                    $testKitDependencies
                }
    
                ${mavenCentralRepository()}
    
            """.stripIndent()
            if (testKitSpec) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top