Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for gradleApi (0.14 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/DependencyClassPathProvider.java

                return gradleKotlinDsl();
            }
            return null;
        }
    
        private ClassPath gradleApi() {
            if (gradleApi == null) {
                gradleApi = initGradleApi();
            }
            return gradleApi;
        }
    
        private ClassPath initGradleApi() {
            // This gradleApi() method creates a Gradle API classpath based on real jars for embedded test running.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:58:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/DependencyHandlerApiResolveIntegrationTest.groovy

            then:
            result.assertTaskNotSkipped(':compileTestJava')
        }
    
        def "gradleApi dependency API does not include test-kit JAR"() {
            when:
            buildFile << """
                dependencies {
                    testImplementation gradleApi()
                }
                verifyTestKitJars {
                    doLast {
                        def jarFiles = libsDir.listFiles()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 06:59:30 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/notations/DependencyClassPathNotationConverter.java

            List<File> gradleApi = getClassPath(GRADLE_API);
            testKitClasspath.removeAll(gradleApi);
    
            ImmutableSet.Builder<File> builder = ImmutableSet.builder();
            builder.add(relocatedDepsJar(testKitClasspath, RuntimeShadedJarType.TEST_KIT));
            builder.addAll(gradleApiFileCollection(gradleApi));
            return builder.build();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:30:57 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractPropertyUpgradesBinaryCompatibilityCrossVersionSpec.groovy

        }
    
        protected void prepareGroovyPluginTest(String pluginApplyBody) {
            file("producer/build.gradle") << """
                apply plugin: 'groovy'
                dependencies {
                    implementation gradleApi()
                }
            """
    
            file("producer/src/main/groovy/SomePlugin.groovy") << """
                ${getDefaultImports().collect { "import " + it }.join("\n")}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/groovy/build.gradle

        def copyPluginDescriptors = rootSpec.addChild()
        copyPluginDescriptors.into('META-INF/gradle-plugins')
        copyPluginDescriptors.from(tasks.pluginDescriptors)
    }
    
    dependencies {
        gradle7CompileOnly(gradleApi()) // <4>
    }
    // end::add-plugin-variant[]
    
    // tag::consume-plugin-variant[]
    configurations.configureEach {
        if (canBeResolved && name.startsWith(gradle7.name))  {
            attributes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 01:32:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/developingPlugins/pluginWithVariants/kotlin/build.gradle.kts

        val copyPluginDescriptors = rootSpec.addChild()
        copyPluginDescriptors.into("META-INF/gradle-plugins")
        copyPluginDescriptors.from(tasks.pluginDescriptors)
    }
    
    dependencies {
        "gradle7CompileOnly"(gradleApi()) // <4>
    }
    // end::add-plugin-variant[]
    
    // tag::consume-plugin-variant[]
    configurations.configureEach {
        if (isCanBeResolved && name.startsWith(gradle7.name))  {
            attributes {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 01:32:48 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/DifferentJnaVersionInPluginIntegrationSpec.groovy

            given:
            buildScript """
                plugins {
                    id 'java'
                }
    
                ${mavenCentralRepository()}
                dependencies {
                    implementation gradleApi()
                    implementation 'net.java.dev.jna:jna:4.1.0'
                    testImplementation 'junit:junit:4.13'
                }
            """.stripIndent()
    
            file('src/test/java/JnaDoesWork.java') << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/api/plugins/BuildSrcPluginIntegrationTest.groovy

            """
    
            file("buildSrc/testplugin/build.gradle") << """
                apply plugin: "groovy"
    
                dependencies {
                    implementation localGroovy()
                    implementation gradleApi()
                }
            """
    
            def pluginSource = file("buildSrc/testplugin/src/main/groovy/testplugin/TestPlugin.groovy") << """
                package testplugin
                import org.gradle.api.Plugin
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-development/src/main/java/org/gradle/initialization/buildsrc/GroovyBuildSrcProjectConfigurationAction.java

            project.getPluginManager().apply(GroovyPlugin.class);
    
            DependencyHandler dependencies = project.getDependencies();
            dependencies.add(JvmConstants.API_CONFIGURATION_NAME, dependencies.gradleApi());
            dependencies.add(JvmConstants.API_CONFIGURATION_NAME, dependencies.localGroovy());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:27:57 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/util/internal/VersionNumberIntegrationTest.groovy

                plugins {
                    kotlin("jvm") version embeddedKotlinVersion
                }
    
                ${mavenCentralRepository(GradleDsl.KOTLIN)}
    
                dependencies {
                    implementation(gradleApi())
                    implementation(kotlin("stdlib"))
                }
    
                tasks.withType<KotlinCompile>().configureEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top