Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for withJavadocJar (0.3 sec)

  1. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/internal/DefaultJavaFeatureSpec.java

        @Override
        public void capability(String group, String name, String version) {
            capabilities.add(new DefaultImmutableCapability(group, name, version));
        }
    
        @Override
        public void withJavadocJar() {
            withJavadocJar = true;
        }
    
        @Override
        public void withSourcesJar() {
            withSourcesJar = true;
        }
    
        @Override
        public void disablePublication() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 02 01:52:06 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/readme-templates/library-api-docs.adoc.template

    You can also generate a Javadoc JAR for your library:
    
    .build.gradle.kts
    [source.multi-language-sample,kotlin]
    ----
    java {
        withJavadocJar()
    }
    ----
    
    .build.gradle
    [source.multi-language-sample,groovy]
    ----
    java {
        withJavadocJar()
    }
    ----
    
    
    
    The additional JAR will be produced as part of the `assemble` or `build` lifecycle tasks and will be part of the publication.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-java/src/main/java/org/gradle/jvm/component/internal/DefaultJvmSoftwareComponent.java

        // which is still being designed. For now, we'll add the variants manually.
    
        @Override
        public void withJavadocJar() {
            JvmFeatureInternal feature = getMainFeature();
    
            feature.withJavadocJar();
    
            Configuration javadocElements = feature.getJavadocElementsConfiguration();
            if (!isRegisteredAsLegacyVariant(javadocElements)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:18:02 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. platforms/jvm/language-jvm/src/main/java/org/gradle/api/plugins/FeatureSpec.java

        /**
         * Automatically package Javadoc and register the produced JAR as a variant.
         * See also {@link JavaPluginExtension#withJavadocJar()}.
         *
         * @since 6.0
         */
        void withJavadocJar();
    
        /**
         * Automatically package sources from the linked {@link #usingSourceSet(SourceSet) SourceSet} and register the produced JAR as a variant.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/JavaBasePluginIntegrationTest.groovy

        }
    
        def "calling withJavadocJar is deprecated when the java plugin is not applied"() {
            given:
            buildFile << """
                plugins {
                    id 'java-base'
                }
    
                sourceSets {
                    main
                }
    
                task javadoc {
    
                }
    
                java {
                    withJavadocJar()
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/jvm/component/internal/DefaultJvmSoftwareComponentIntegrationTest.groovy

                plugins {
                    id('java-library')
                }
    
                ${importStatements()}
    
                components {
                    java {
                        withJavadocJar()
                    }
                }
    
                task verify {
                    assert components.java instanceof DefaultJvmSoftwareComponent
                    assert configurations.javadocElements
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 21:18:02 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/ivy-publish/java-multi-project/kotlin/buildSrc/src/main/kotlin/myproject.publishing-conventions.gradle.kts

    plugins {
        id("java-library")
        id("ivy-publish")
    }
    
    version = "1.0"
    group = "org.gradle.sample"
    
    repositories {
        mavenCentral()
    }
    
    java {
        withJavadocJar()
        withSourcesJar()
    }
    
    publishing {
        repositories {
            ivy {
                // change to point to your repo, e.g. http://my.org/repo
                url = uri("${rootProject.buildDir}/repo")
            }
        }
        publications {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 601 bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/jvm/internal/DefaultJvmFeatureTest.groovy

            def f2 = new DefaultJvmFeature("feature2", two, Collections.emptySet(), project, false, false)
    
            f1.withJavadocJar()
            f1.withSourcesJar()
            f1.withApi()
            f1.withSourceElements()
    
            f2.withJavadocJar()
            f2.withSourcesJar()
            f2.withApi()
            f2.withSourceElements()
    
            then:
            noExceptionThrown()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/java-feature-variant/producer-separate-sourceset/kotlin/build.gradle.kts

            }
        }
    }
    
    // tag::register_variant_extra_jars[]
    java {
        registerFeature("mongodbSupport") {
            usingSourceSet(sourceSets["mongodbSupport"])
    // end::register_variant[]
            withJavadocJar()
            withSourcesJar()
    // tag::register_variant2[]
        }
    }
    // end::register_variant2[]
    // end::register_variant_extra_jars[]
    
    // tag::variant_dependencies[]
    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 29 05:16:22 UTC 2023
    - 983 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/ivy-publish/java-multi-project/groovy/buildSrc/src/main/groovy/myproject.publishing-conventions.gradle

    plugins {
        id 'java-library'
        id 'ivy-publish'
    }
    
    version = '1.0'
    group = 'org.gradle.sample'
    
    repositories {
        mavenCentral()
    }
    
    java {
        withJavadocJar()
        withSourcesJar()
    }
    
    publishing {
        repositories {
            ivy {
                // change to point to your repo, e.g. http://my.org/repo
                url = "${rootProject.buildDir}/repo"
            }
        }
        publications {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 580 bytes
    - Viewed (0)
Back to top