Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for mapToMavenScope (0.67 sec)

  1. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenScopesTestIntegTest.groovy

                    mapToMavenScope('compile')
                }
    
                components.java.withVariantsFromConfiguration(configurations.custom) {
                    mapToMavenScope('runtime')
                }
    
                components.java.withVariantsFromConfiguration(configurations.custom) {
                    mapToMavenScope('compile')
                }
    
                publishing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  2. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishFeaturesJavaIntegTest.groovy

                components.java.addVariantsFromConfiguration(configurations.optionalFeature1RuntimeElements) {
                    mapToMavenScope('compile')
                    mapToOptional()
                }
                components.java.addVariantsFromConfiguration(configurations.optionalFeature2RuntimeElements) {
                    mapToMavenScope('compile')
                    mapToOptional()
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/kotlin/buildSrc/src/main/kotlin/com/acme/InstrumentedJarsPlugin.kt

            components.add(adhocComponent)
            // and register a variant for publication
            adhocComponent.addVariantsFromConfiguration(outgoing) {
                mapToMavenScope("runtime")
            }
            // end::create_adhoc_component[]
        }
    
        private fun Project.attachArtifact() {
            val instrumentedJar = tasks.register<Jar>("instrumentedJar") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/groovy/buildSrc/src/main/groovy/com/acme/InstrumentedJarsPlugin.groovy

            project.components.add(adhocComponent)
            // and register a variant for publication
            adhocComponent.addVariantsFromConfiguration(outgoing) {
                it.mapToMavenScope("runtime")
            }
            // end::create_adhoc_component[]
        }
    
        private void addVariantToExistingComponent(Project project, Configuration outgoing) {
            // tag::add_variant_to_existing_component[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishJavaIntegTest.groovy

                }
    
                def javaComponent = components.findByName("java")
                javaComponent.addVariantsFromConfiguration(testConf) {
                    it.mapToMavenScope("runtime")
                }
    
                publishing {
                    publications {
                        maven(MavenPublication) {
                            from components.java
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/component/ConfigurationVariantDetails.java

         * systematically be published as import scope.
         *  @param scope the Maven scope to use for dependencies found in this configuration variant
         *
         */
        void mapToMavenScope(String scope);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 17 15:43:27 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/plugins/internal/JavaConfigurationVariantMapping.java

            ConfigurationVariant variant = details.getConfigurationVariant();
            if (UnpublishableArtifactTypeSpec.INSTANCE.isSatisfiedBy(variant)) {
                details.skip();
            } else {
                details.mapToMavenScope(scope);
                if (optional) {
                    details.mapToOptional();
                }
                if (resolutionConfiguration != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 19 01:37:13 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  8. build-logic/packaging/src/main/kotlin/gradlebuild.public-api-jar.gradle.kts

    components.add(gradleApiComponent)
    
    // Published component containing the public Gradle API
    gradleApiComponent.addVariantsFromConfiguration(gradleApiElements.get()) {
        mapToMavenScope("compile")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 11:35:55 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/component/ConfigurationVariantMapping.java

                skip = true;
            }
    
            @Override
            public void mapToOptional() {
                this.optional = true;
            }
    
            @Override
            public void mapToMavenScope(String scope) {
                this.mavenScope = assertValidScope(scope);
            }
    
            @Override
            public void dependencyMapping(Action<? super DependencyMappingDetails> action) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 19:31:52 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishExternalVariantIntegrationTest.groovy

                        }
                    }
                }
    
                firstChildComponent.addVariantsFromConfiguration(configurations.extraRuntimeElements) {
                    mapToMavenScope('runtime')
                }
            """
    
            buildFile << """
                dependencies {
                    firstImplementation create(project(':other'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 37.1K bytes
    - Viewed (0)
Back to top