Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 88 for gradleApi (3.13 sec)

  1. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/dependencies/TestSuitesKotlinDSLDependenciesIntegrationTest.groovy

            'a custom suite'    | 'integTest' | 'val integTest by registering(JvmTestSuite::class)'
        }
        // endregion dependencies - platforms
    
        // region dependencies - self-resolving dependencies
        def "can add gradleApi dependency to #suiteDesc"() {
            given:
            buildKotlinFile << """
                plugins {
                    `java-library`
                }
    
                ${mavenCentralRepository(GradleDsl.KOTLIN)}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 16:25:08 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  2. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildConfigurationAttributesResolveIntegrationTest.groovy

                    group = 'com.acme.typed-attributes'
                    version = '$version'
    
                    dependencies {
                        implementation localGroovy()
                        implementation gradleApi()
                    }
    
                    publishing {
                        repositories {
                            maven {
                                url "${mavenRepo.uri}"
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 14:30:36 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformExecutionBuildOperationIntegrationTest.groovy

            !inputArtifactNames.empty
            (inputArtifactNames as Set).size() == inputArtifactNames.size()
    
            where:
            classpathNotation   | displayName
            'gradleApi()'       | 'Gradle API'
            'gradleTestKit()'   | 'Gradle TestKit'
            'localGroovy()'     | 'Local Groovy'
            'gradleKotlinDsl()' | 'Gradle Kotlin DSL'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/PrecompiledGroovyPluginsIntegrationTest.groovy

            then:
            outputContains("from custom task")
        }
    
        @Requires(value = IntegTestPreconditions.NotEmbeddedExecutor, reason = "Requires a Gradle distribution on the test-under-test classpath, but gradleApi() does not offer the full distribution")
        def "can write tests for precompiled script plugins"() {
            given:
            pluginWithSampleTask("src/main/groovy/test-plugin.gradle")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDependencyResolutionIntegrationTest.groovy

            buildScript '''
                plugins {
                    id 'java-library'
                }
    
                dependencies {
                    implementation(gradleApi())
                }
    
                @CacheableTask
                abstract class PrintArtifactIds extends DefaultTask {
    
                    @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/dep-man/01-core-dependency-management/declaring_dependencies.adoc

    You can declare a dependency on the API of the current version of Gradle by using the link:{groovyDslPath}/org.gradle.api.artifacts.dsl.DependencyHandler.html#org.gradle.api.artifacts.dsl.DependencyHandler:gradleApi()[DependencyHandler.gradleApi()] method. This is useful when you are developing custom Gradle tasks or plugins.
    
    .Gradle API dependencies
    ====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 07 01:37:51 UTC 2023
    - 30.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_6.adoc

    You can pull these dependencies into your build like any other external dependency.
    
    ===== Building Gradle plugins with Groovy 3
    
    Plugins built with Gradle 7.0 will now have Groovy 3 on their classpath when using `gradleApi()` or `localGroovy()`.
    
    NOTE: If you use https://spockframework.org/[Spock] to test your plugins, you will need to use Spock 2.x. There are no compatible versions of Spock 1.x and Groovy 3.
    
    ```
    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_8.adoc

    We believe this situation is very unlikely to occur in real projects, as IDE integration and test execution would not work correctly.
    If you need to use the Gradle API, declare a `gradleApi` dependency or use the `java-gradle-plugin` plugin.
    
    ==== Configuration cache implementation packages now under `org.gradle.internal`
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 17:01:07 UTC 2024
    - 90.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyClassPathNotationConverterTest.groovy

        def "parses classpath literal"() {
            when:
            def out = parse(GRADLE_API)
    
            then:
            out instanceof DefaultFileCollectionDependency
            out.files as List == [shadedApiJar] + localGroovyFiles + installationBeaconFiles
        }
    
        def "reuses dependency instances"() {
            when:
            def out = parse(GRADLE_API)
    
            then:
            out instanceof DefaultFileCollectionDependency
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 28 20:27:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/build.gradle.kts

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    import com.gradleup.gr8.EmbeddedJarTask
    import com.gradleup.gr8.Gr8Task
    import java.util.jar.Attributes
    
    plugins {
        id("gradlebuild.distribution.api-java")
        id("com.gradleup.gr8") version "0.10"
    }
    
    description = "Entry point of the Gradle wrapper command"
    
    gradlebuildJava.usedInWorkers()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top