Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for publishToMavenLocal (0.45 sec)

  1. platforms/software/maven/src/main/java/org/gradle/api/publish/maven/tasks/PublishToMavenLocal.java

    /**
     * Publishes a {@link org.gradle.api.publish.maven.MavenPublication} to the Maven Local repository.
     *
     * @since 1.4
     */
    @DisableCachingByDefault(because = "Not worth caching")
    public abstract class PublishToMavenLocal extends AbstractPublishToMaven {
        private final Cached<MavenNormalizedPublication> normalizedPublication = Cached.of(this::computeNormalizedPublication);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/maven-publish/conditional-publishing/groovy/build.gradle

        }
        onlyIf("publishing binary to the external repository, or binary and sources to the internal one") {
            predicate.get()
        }
    }
    tasks.withType(PublishToMavenLocal) {
        def predicate = provider {
            publication == publishing.publications.binaryAndSources
        }
        onlyIf("publishing binary and sources") {
            predicate.get()
        }
    }
    // end::task-config[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/maven-publish/conditional-publishing/kotlin/build.gradle.kts

        }
        onlyIf("publishing binary to the external repository, or binary and sources to the internal one") {
            predicate.get()
        }
    }
    tasks.withType<PublishToMavenLocal>().configureEach {
        val predicate = provider {
            publication == publishing.publications["binaryAndSources"]
        }
        onlyIf("publishing binary and sources") {
            predicate.get()
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishCoordinatesIntegTest.groovy

                            artifactId 'custom'
                            version '2.2'
                        }
                    }
                }
            """
    
            when:
            succeeds 'publishToMavenLocal'
    
            then: "jar is published to maven local repository"
            repoModule.assertNotPublished()
            localModule.assertPublished()
    
            when:
            succeeds 'publish'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/running-builds/tutorial/part4_gradle_plugins.adoc

    ...
    
    Publishing tasks
    ----------------
    publish - Publishes all publications produced by this project.
    publishToMavenLocal - Publishes all Maven publications produced by this project to the local Maven cache.
    ----
    
    A new set of publishing tasks are now available called `publish`, and `publishToMavenLocal`.
    
    Similarly, the new tasks from the Maven Publish plugin are now available in IntelliJ in the Gradle right-hand pane.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 13 11:29:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/plugins/MavenPublishPluginTest.groovy

            publishTasks.last().repository.is(repo2)
            publishTasks.last().name == "publishTestPublicationToOtherRepository"
        }
    
        List<PublishToMavenLocal> getPublishLocalTasks() {
            project.tasks.withType(PublishToMavenLocal).sort { it.name }
        }
    
        List<PublishToMavenRepository> getPublishTasks() {
            def allTasks = project.tasks.withType(PublishToMavenRepository).sort { it.name }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. test_docs.sh

    # It requires Python to run.
    # Install the packages with the following command:
    # pip install mkdocs mkdocs-material mkdocs-redirects
    
    set -ex
    
    # Test generating the javadoc jars
    ./gradlew publishToMavenLocal -DRELEASE_SIGNING_ENABLED=false
    
    # Generate the API docs
    ./gradlew dokkaHtmlMultiModule
    
    mv ./build/dokka/htmlMultiModule docs/4.x
    
    # Copy in special files that GitHub wants in the project root.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 17 13:52:16 UTC 2024
    - 718 bytes
    - Viewed (0)
  8. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/SamplesMavenPublishIntegrationTest.groovy

            and:
            def fileRepo = maven(sampleDir.file("build/repo"))
            def module = fileRepo.module("org.gradle.sample", "quickstart", "1.0")
    
            when:
            succeeds 'publishToMavenLocal'
    
            then: "jar is published to maven local repository"
            module.assertNotPublished()
            localModule.assertPublishedAsJavaModule()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishSnapshotIntegTest.groovy

                }
            }
        }
    """
            def module = getM2().mavenRepo().module('org.gradle', 'snapshotInstall', '1.0-SNAPSHOT')
    
            when:
            succeeds 'publishToMavenLocal'
    
            then:
            module.assertArtifactsPublished("maven-metadata-local.xml", "snapshotInstall-1.0-SNAPSHOT.module", "snapshotInstall-1.0-SNAPSHOT.jar", "snapshotInstall-1.0-SNAPSHOT.pom")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 12:20:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/derived/JvmDerivedVariantsIntegrationTest.groovy

    }
    """
            file('src/main/java/com/example/Foo.java').java """
    package com.example;
    
    /**
    * Foo class.
    */
    public class Foo {
    
    }
    """
            using m2
            succeeds("publishToMavenLocal")
        }
    
        def "sources jar attributes match derived variants attributes"() {
            file("consumer/build.gradle") << """
    dependencies {
        implementation 'com.example:test:1.0'
    }
    
    task resolve {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 18 19:46:19 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top