Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 128 for sourceSets (0.61 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationRoleUsageIntegrationTest.groovy

                    void apply(project) {
                        project.pluginManager.apply(BasePlugin.class)
                        project.pluginManager.apply(JvmEcosystemPlugin.class)
    
                        project.sourceSets.create('custom')
                        project.configurations.create('customCompileOnly')
    
                        project.configurations.create('implementation')
                    }
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 01:42:49 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/variants/GradlePluginWithVariantsPublicationIntegrationTest.groovy

                    id('maven-publish')
                }
    
                group = "com.example"
                version = "1.0"
    
                // == Add a Gradle 7 variant
                def gradle7 = sourceSets.create('gradle7')
                java {
                    registerFeature(gradle7.name) {
                        usingSourceSet(gradle7)
                        capability(project.group.toString(), project.name, project.version.toString())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:55:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/AndroidPluginsSmokeTest.groovy

        }
    
        @UnsupportedWithConfigurationCache
        def "can use sourceSets task with android library and application build (agp=#agpVersion, ide=#ide)"() {
            given:
            AGP_VERSIONS.assumeCurrentJavaVersionIsSupportedBy(agpVersion)
    
            and:
            androidLibraryAndApplicationBuild(agpVersion)
    
            and:
            def runner = agpRunner(agpVersion, 'sourceSets')
    
            when:
            def result = runner.build()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/Javadoc.java

     * Without source the Javadoc task will not create any documentation. Example:
     * <pre class='autoTested'>
     * plugins {
     *     id 'java'
     * }
     *
     * task myJavadocs(type: Javadoc) {
     *   source = sourceSets.main.allJava
     * }
     * </pre>
     *
     * <p>
     * An example how to create a task that runs a custom doclet implementation:
     * <pre class='autoTested'>
     * plugins {
     *     id 'java'
     * }
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaAccessorsIntegrationTest.kt

                        group = "verification"
                        testClassesDirs = sourceSets["integTest"].output.classesDirs
                        classpath = sourceSets["integTest"].runtimeClasspath
                        mustRunAfter(project.tasks.test)
                    }
    
                    check { dependsOn(integTest) }
                }
    
                """
            )
    
            build("help")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 29 11:39:00 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  6. platforms/ide/ide-plugins/src/test/groovy/org/gradle/plugins/ide/internal/tooling/eclipse/EclipseModelBuilderTest.groovy

            new File(project.getProjectDir(), 'src/main/java').mkdirs()
            project.plugins.apply(JavaPlugin)
            includes.each { project.sourceSets.main.java.include it }
            excludes.each { project.sourceSets.main.java.exclude it }
    
            when:
            def eclipseModel = modelBuilder.buildAll("org.gradle.tooling.model.eclipse.EclipseProject", project)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/main/java/org/gradle/testing/jacoco/plugins/JacocoPlugin.java

                    reportTask.setDescription(String.format("Generates code coverage report for the %s task.", testTaskName));
                    reportTask.executionData(testTaskProvider.get());
                    reportTask.sourceSets(project.getExtensions().getByType(SourceSetContainer.class).getByName("main"));
                    // TODO: Change the default location for these reports to follow the convention defined in ReportOutputDirectoryAction
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 21:09:25 UTC 2023
    - 14K bytes
    - Viewed (0)
  8. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/tasks/SourceSet.java

        /**
         * Determines if this source set is the main source set
         *
         * @since 6.7
         */
        static boolean isMain(SourceSet sourceSet) {
            return MAIN_SOURCE_SET_NAME.equals(sourceSet.getName());
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/jvm/building_java_projects.adoc

    ====
    
    1. By setting the `compileGroovy` classpath to be only `sourceSets.main.compileClasspath`, we effectively remove the previous dependency on `compileJava` that was declared by having the classpath also take into consideration `sourceSets.main.java.classesDirectory`
    2. By adding `sourceSets.main.groovy.classesDirectory` to the `compileJava` `classpath`, we effectively declare a dependency on the `compileGroovy` task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 44.1K bytes
    - Viewed (0)
  10. build-logic/performance-testing/src/main/groovy/gradlebuild.performance-templates.gradle

        inputs.property('args') { // Arguments are covered by the testProjectName and the outputs. We don't want them to contain the absolute path
            return []
        }
        classpath = sourceSets.performanceTest.runtimeClasspath.filter { it.name.contains('groovy') || it.name.contains('guava')  || it.name.contains('gradle-') }
        mainClass = 'org.gradle.performance.generator.DeclarativeDslTestProjectGenerator'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 15:43:39 UTC 2024
    - 19.5K bytes
    - Viewed (0)
Back to top