Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 491 for sourceSets (0.17 sec)

  1. platforms/documentation/docs/src/samples/java/modules-multi-project-with-integration-tests/groovy/buildSrc/src/main/groovy/myproject.java-conventions.gradle

    }
    
    def integrationTest = sourceSets.create('integrationTest')
    
    configurations[integrationTest.implementationConfigurationName].extendsFrom(configurations.testImplementation)
    configurations[integrationTest.runtimeOnlyConfigurationName].extendsFrom(configurations.testRuntimeOnly)
    
    tasks.named("test") {
        useJUnitPlatform()
    }
    
    def integrationTestJarTask = tasks.register(sourceSets.integrationTest.jarTaskName, Jar) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/ide/ide-native/src/test/groovy/org/gradle/ide/visualstudio/internal/NativeSpecVisualStudioTargetBinaryTest.groovy

            def resourcefile2 = new File('file5')
            def resourcefile3 = new File('file6')
            def sourceSet = sourceSet(sourcefile1, sourcefile2, sourcefile3)
            def sourceSet3 = resourceSet(resourcefile1, resourcefile2, resourcefile3)
            sourceSets.addAll(sourceSet, sourceSet3)
    
            when:
            exeBinary.inputs >> sourceSets
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseTestConfigurationsWithProjectDependenciesIntegrationTest.groovy

                        }
                    }
                }
            """
    
            file('b/build.gradle') << """
                sourceSets {
                    functionalTest
                }
    
                java {
                    registerFeature('feature') {
                        usingSourceSet(sourceSets.functionalTest)
                    }
                }
            """
    
            when:
            run 'eclipse'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Mar 24 15:55:52 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/resources/org/gradle/integtests/ProjectLayoutIntegrationTest/canUseANonStandardBuildDir/build.gradle

    plugins {
        id("java")
    }
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation 'junit:junit:4.13'
    }
    
    buildDir = 'target'
    sourceSets.main.java.destinationDirectory.set(new File(buildDir, 'main-classes'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 309 bytes
    - Viewed (0)
  5. platforms/software/antlr/src/integTest/groovy/org/gradle/api/plugins/antlr/AntlrPluginIntegrationTest.groovy

            given:
            buildFile << """
                apply plugin: "java"
                apply plugin: "antlr"
    
                ${mavenCentralRepository(GROOVY)}
    
                sourceSets.main {
                    antlr {}
                }
                sourceSets.main {
                    antlr({} as Action)
                }
            """
    
            expect:
            succeeds 'help'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 14:52:10 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. testing/smoke-ide-test/build.gradle.kts

    plugins {
        id("gradlebuild.internal.java")
    }
    
    description = "Tests are checking Gradle behavior during IDE synchronization process"
    
    val smokeIdeTestSourceSet = sourceSets.create("smokeIdeTest") {
        compileClasspath += sourceSets.main.get().output
        runtimeClasspath += sourceSets.main.get().output
    }
    
    addDependenciesAndConfigurations("smokeIde")
    
    val smokeIdeTestImplementation: Configuration by configurations
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 18:13:31 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/tutorial/compileTaskClasspath/kotlin/build.gradle.kts

        // (and not longer the output of compileJava)
        classpath = sourceSets.main.get().compileClasspath
    }
    tasks.named<AbstractCompile>("compileJava") {
        // Java also depends on the result of Groovy compilation
        // (which automatically makes it depend of compileGroovy)
        classpath += files(sourceSets.main.get().groovy.classesDirectory)
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 588 bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/JUnit4TestTaskIntegrationTest.groovy

            buildFile << """
                sourceSets {
                    customTest
                }
    
                dependencies {
                    customTestImplementation 'junit:junit:${version}'
                }
    
                tasks.create('customTest', Test) {
                    classpath = sourceSets.customTest.runtimeClasspath
                    testClassesDirs = sourceSets.customTest.output.classesDirs
                    options {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/resources/org/gradle/api/tasks/javadoc/JavadocIntegrationTest/canCombineLocalOptionWithOtherOptions/build.gradle

    apply plugin: "java"
    
    sourceSets {
        taglet
    }
    
    dependencies {
        if (Jvm.current().toolsJar) {
            tagletImplementation files(Jvm.current().toolsJar)
        }
    }
    
    javadoc {
        dependsOn tagletClasses
        options {
            locale = 'de_DE'
            breakIterator = true
            taglets 'LocaleAwareTaglet'
            tagletPath sourceSets.taglet.java.destinationDirectory.get().asFile
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 428 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/buildCache/integration-tests/groovy/build.gradle

    plugins {
        id('java-library')
    }
    
    sourceSets {
        integTest
    }
    
    tasks.register("integTest", Test) {
        classpath = sourceSets.integTest.runtimeClasspath
        testClassesDirs = sourceSets.integTest.output.classesDirs
    }
    
    // tag::integTest[]
    tasks.named('integTest') {
        inputs.property("operatingSystem") {
            System.getProperty("os.name")
        }
    }
    // end::integTest[]
    
    // tag::distributionPathInput[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top