Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 90 for buildScript (0.26 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

        }
    
        def "#desc can handle symlinks"() {
            def buildScript = file("build.gradle")
            def baseDir = file('build')
            baseDir.file('file').text = 'some contents'
            def symlinked = baseDir.file('symlinked')
            symlinked.text = 'target of symlink'
            baseDir.file('symlink').createLink(symlinked)
    
            buildScript << """
                def baseDir = new File("${escapeString(baseDir)}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/mutator/ClearArtifactTransformCacheWithoutInstrumentedJarsMutator.groovy

    /**
     * A mutator that cleans up the artifact transform cache directory, but leaves folders with the instrumented jars.
     *
     * Since buildscript classpath instrumentation also uses artifact transforms, we can avoid
     * re-instrumenting jars by applying this mutator.
     *
     * In other words, this mutator can be applied to a scenario that tests performance of artifact transforms,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 12:30:06 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. integration-tests/gradle/build.gradle.kts

    val expectedCompileClasspathJreVersion =
      expectedReducedRuntimeClasspathJreVersion + setOf("j2objc-annotations-3.0.0.jar")
    
    val extraLegacyDependencies = setOf("google-collections-1.0.jar")
    
    buildscript {
      val agpVersion = if (gradle.gradleVersion.startsWith("5.")) "3.6.4" else "7.0.4"
      repositories {
        google()
        mavenCentral()
      }
      dependencies {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 03 20:33:34 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r55/ReservedProjectNamesCrossVersionSpec.groovy

                connection.action(new LoadEclipseModel()).run()
            }
    
            then:
            collectProjects(model).collect({ it.name }).contains("a")
        }
    
        def "buildscript names are deduplicated"() {
            when:
            EclipseProject model = withConnection { connection ->
                connection.action(new LoadEclipseModel(eclipseWorkspace([externalProject("explicitName")]))).run()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

    import kotlin.reflect.KClass
    import kotlin.reflect.KProperty
    
    
    /**
     * Configures the build script classpath for this project.
     */
    fun Project.buildscript(action: ScriptHandlerScope.() -> Unit): Unit =
        ScriptHandlerScopeInternal(project, buildscript).action()
    
    
    /**
     * Sets the default tasks of this project. These are used when no tasks names are provided when
     * starting the build.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/SingleUseDaemonIntegrationTest.groovy

        }
    
        def "does not fork build when immutable system property is set on command line with same value as current JVM"() {
            def encoding = Charset.defaultCharset().name()
    
            given:
            buildScript """
                task encoding {
                    doFirst { println "encoding = " + java.nio.charset.Charset.defaultCharset().name() }
                }
            """
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 7K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/KotlinDslJvmTargetIntegrationTest.kt

        @Test
        fun `scripts are compiled using the build jvm target`() {
    
            withClassJar("utils.jar", JavaClassUtil::class.java)
    
            withBuildScript("""
                buildscript {
                    dependencies {
                        classpath(files("utils.jar"))
                    }
                }
    
                $printScriptJavaClassFileMajorVersion
            """)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 08:31:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt

            """)
            buildAndFail("help").apply {
                assertHasErrorOutput("Unresolved reference: sourceCompatibility")
            }
    
            withFile("applied.gradle.kts", """
                buildscript {
                    dependencies {}
                }
                println(java.sourceCompatibility)
            """)
            buildAndFail("help").apply {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:57:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

            """
            file("included/build.gradle") << """plugins { id("java-gradle-plugin") }"""
            file("included/settings.gradle") << "rootProject.name = 'included'"
            buildFile.text = """
                buildscript {
                    dependencies {
                        classpath(files("./included/build/libs/included.jar"))
                    }
                }
                apply plugin: MyPlugin
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformBuildOperationIntegrationTest.groovy

            getPlannedNodes(0)
            getExecutePlannedStepOperations(0).empty
        }
    
        def "planned transform steps from script plugin buildscript block are not captured"() {
            setupProjectTransformInBuildScriptBlock(true)
    
            when:
            run "consumer:hello"
            then:
            executedAndNotSkipped(":consumer:hello")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 67.8K bytes
    - Viewed (0)
Back to top