Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for myAdhocComponent (0.15 sec)

  1. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/kotlin/producer/build.gradle.kts

    }
    
    publishing {
        repositories {
            maven {
                setUrl("${buildDir}/repo")
            }
        }
        publications {
            create<MavenPublication>("myPublication") {
                from(components["myAdhocComponent"])
            }
        }
    }
    
    if (project.hasProperty("disableGradleMetadata")) {
        // tag::disable_gradle_metadata_publication[]
        tasks.withType<GenerateModuleMetadata> {
            enabled = false
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 852 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/groovy/producer/build.gradle

    publishing {
        repositories {
            maven {
                url "${buildDir}/repo"
            }
        }
        publications {
            myPublication(MavenPublication) {
                from components.myAdhocComponent
            }
        }
    }
    
    if (project.hasProperty("disableGradleMetadata")) {
        // tag::disable_gradle_metadata_publication[]
        tasks.withType(GenerateModuleMetadata) {
            enabled = false
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 859 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/dependencyManagement/modelingFeatures-crossProjectPublications-advanced-published/kotlin/buildSrc/src/main/kotlin/com/acme/InstrumentedJarsPlugin.kt

        }
    
        private fun Project.configurePublication(outgoing: Configuration) {
            // tag::create_adhoc_component[]
            // create an adhoc component
            val adhocComponent = softwareComponentFactory.adhoc("myAdhocComponent")
            // add it to the list of components that this project declares
            components.add(adhocComponent)
            // and register a variant for publication
    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

        private void configurePublication(Project project, Configuration outgoing) {
            // tag::create_adhoc_component[]
            // create an adhoc component
            def adhocComponent = softwareComponentFactory.adhoc("myAdhocComponent")
            // add it to the list of components that this project declares
            project.components.add(adhocComponent)
            // and register a variant for publication
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top