Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,796 for buildFile (0.16 sec)

  1. platforms/jvm/plugins-jvm-test-fixtures/src/testFixtures/groovy/org/gradle/java/fixtures/AbstractJavaProjectTestFixturesIntegrationTest.groovy

                    .publish()
            buildFile << """
                dependencies {
                    testImplementation(testFixtures('com.acme:external-module:1.3'))
                }
                repositories {
                    maven {
                        url "${mavenRepo.uri}"
                    }
                }
            """
            when:
            def resolve = new ResolveTestFixture(buildFile, "testCompileClasspath")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:17:58 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/api/plugins/JavaPluginIntegrationTest.groovy

            given:
            buildFile << """
                apply plugin: 'java'
    
                task expect {
                    assert project.components.mainComponent.get() == components.java
                }
            """
    
            expect:
            succeeds "expect"
        }
    
        def "Java plugin adds outgoing variant for main source set"() {
            buildFile << """
                plugins {
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalCompileIntegrationTest.groovy

            def app = new SwiftApp()
            settingsFile << "rootProject.name = 'app'"
            app.writeToProject(testDirectory)
            buildFile << """
                apply plugin: 'swift-application'
             """
    
            outputs.snapshot { succeeds("compileDebugSwift") }
    
            buildFile << """
                tasks.withType(SwiftCompile) {
                    compilerArgs.add('-Onone')
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/xcode/AbstractXcodeNativeProjectIntegrationTest.groovy

            }
        }
    
        @Requires(UnitTestPreconditions.HasXCode)
        @ToBeFixedForConfigurationCache
        def "returns meaningful errors from xcode when component product is unbuildable due to operating system"() {
            useXcodebuildTool()
    
            given:
            makeSingleProject()
            buildFile << configureTargetMachines("machines.os('os-family')")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorIntegrationTest.groovy

        def buildOperations = new BuildOperationsFixture(executer, temporaryFolder)
    
        def "can create and use a work action defined in buildSrc in #isolationMode"() {
            fixture.withWorkActionClassInBuildSrc()
    
            buildFile << """
                task runInWorker(type: WorkerTask) {
                    isolationMode = $isolationMode
                }
            """
    
            when:
            succeeds("runInWorker")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

    @RequiresInstalledToolChain(ToolChainRequirement.SWIFTC)
    class SwiftLibraryIntegrationTest extends AbstractInstalledToolChainIntegrationSpec {
        def "skip compile and link tasks when no source"() {
            given:
            buildFile << """
                apply plugin: 'swift-library'
            """
    
            expect:
            succeeds "assemble"
            result.assertTasksExecuted(":compileDebugSwift", ":linkDebug", ":assemble")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

            given:
            def testScript = ShellScript.builder()
                .printArguments()
                .printEnvironmentVariable("TEST_FOO")
                .writeTo(testDirectory, "script")
    
            buildFile """
                def execProvider = providers.exec {
                    ${cmdToExecConfig(*testScript.commandLine, "--some-arg")}
                    environment("TEST_FOO", "fooValue")
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentBinarySourcesIntegrationTest.groovy

    class ComponentBinarySourcesIntegrationTest extends AbstractComponentModelIntegrationTest {
        def setup() {
            withCustomComponentType()
            withCustomBinaryType()
            withCustomLanguageType()
    
            buildFile << '''
    model {
        components {
            mylib(CustomComponent) {
                binaries {
                    main(CustomBinary)
                    test(CustomBinary)
                }
            }
        }
    }
    '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  9. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputHistoryLossIntegrationTest.groovy

            given:
            def javaProject = new StaleOutputJavaProject(testDirectory, buildDirName)
            buildFile << "apply plugin: 'java'"
    
            if (!defaultDir) {
                buildFile << """
                    buildDir = '$javaProject.buildDirName'
                """
            }
    
            when:
            result = runWithMostRecentFinalRelease(JAR_TASK_NAME)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            when:
            succeeds "test"
    
            then:
            skipped ':test'
    
            // Keep the same files, but move one of them to the other property
            buildFile.delete()
            buildFile << """
                task test(type: TaskWithTwoOutputDirectoriesProperties) {
                    outputs1 = file("\$buildDir/output2")
                    outputs2 = file("\$buildDir/output1")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top