Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 128 for sourceSets (0.3 sec)

  1. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/test_kit.adoc

    The plugin uses the following conventions for applying the TestKit dependency and injecting the classpath:
    
    * Source set containing code under test: `sourceSets.main`
    * Source set used for injecting the plugin classpath: `sourceSets.test`
    
    Any of these conventions can be reconfigured with the help of the class link:{javadocPath}/org/gradle/plugin/devel/GradlePluginDevelopmentExtension.html[GradlePluginDevelopmentExtension].
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

            build using task: :sampleLibBinary
        OtherSampleBinary 'sampleLib:otherBinary'
            build using task: :sampleLibOtherBinary
    """)
        }
    
        def "links components sourceSets to binaries"() {
            when:
            buildFile << withSimpleComponentBinaries()
            buildFile << '''
                model {
                    tasks {
                        checkSourceSets(Task) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/NativeServicesIntegrationTest.groovy

                    // Override native libs dir for the test executor
                    systemProperty("$NATIVE_DIR_OVERRIDE", "${nativeDirOverride}")
                }
    
                gradlePlugin.testSourceSets.add(sourceSets["functionalTest"])
            """)
            file("src/functionalTest/groovy/TestkitTestPluginFunctionalTest.groovy") << """
                import spock.lang.Specification
                import spock.lang.TempDir
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiClientJdkCompatibilityTest.groovy

                }
    
                configure([runTask, buildAction]) {
                    classpath = sourceSets.main.runtimeClasspath
                    mainClass = "ToolingApiCompatibilityClient"
                    javaLauncher = javaToolchains.launcherFor {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginPluginPublishingIntegrationTest.groovy

            publishToMaven()
            publishToIvy()
    
            and:
            buildFile << """
    
                task sourceJar(type: Jar) {
                    archiveClassifier = "sources"
                    from sourceSets.main.allSource
                }
    
                publishing {
                    publications {
                        pluginMaven(MavenPublication) {
                            artifact sourceJar
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 13:07:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryCompilationIntegrationTest.groovy

            toggleCompileClasspathPackaging(compileClasspathPackaging)
    
            given:
            subproject('a') {
                'build.gradle'("""
                    apply plugin: 'java'
                    sourceSets {
                        foo {
                            java.srcDir 'src/foo/java'
                        }
                    }
                    dependencies {
                        fooImplementation project(':b')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 13:02:41 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromGroovyDslIntegrationTest.groovy

            "configurations.compileClasspath.dependencies"             | "plugins { id('java') }"
            "sourceSets.main.java"                                     | "plugins { id('java') }"
            "sourceSets.main.output"                                   | "plugins { id('java') }"
            "configurations.apiElements.allArtifacts"                  | "plugins { id('java') }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/PrecompiledGroovyPluginsIntegrationTest.groovy

            given:
            enablePrecompiledPluginsInBuildSrc()
            file("buildSrc/src/main/groovy/plugins/foo.gradle") << """
                sourceSets.main.java.srcDir 'src'
            """
    
            file("src/Foo.java") << """
                public class Foo { }
            """
    
            buildFile << """
                plugins {
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskTimeoutIntegrationTest.groovy

                    }
                }
            """
            buildFile << """
                apply plugin: 'java'
                task block(type: JavaExec) {
                    classpath = sourceSets.main.output
                    mainClass = 'Block'
                    timeout = Duration.ofMillis($TIMEOUT)
                }
                """
    
            expect:
            2.times {
                fails "block"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/tasks/testing/Test.java

         * plugins {
         *     id 'java'
         * }
         *
         * sourceSets {
         *    integrationTest {
         *       compileClasspath += main.output
         *       runtimeClasspath += main.output
         *    }
         * }
         *
         * task integrationTest(type: Test) {
         *     // Runs tests from src/integrationTest
         *     testClassesDirs = sourceSets.integrationTest.output.classesDirs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 42.6K bytes
    - Viewed (0)
Back to top