Giter Site home page Giter Site logo

Comments (4)

simonbasle avatar simonbasle commented on May 27, 2024

after having investigated potentials fixes and verified that no other file is problematic with the current build process, it appears we have two choices:

  1. publish the extra artifacts to Maven Central (addons isn't directly concerned, but docsZip task in reactor-core comes to mind)
  2. implement a convoluted solution to have different set of artifacts deployed to Artifactory vs Maven Central
  1. was suggested by @mp911de who does that for Lettuce. It wasn't explored earlier because we were under the impression Maven Central would reject a zip outright (since Artifactory-to-Bintray step would reject it. so this was probably a limitation imposed by bintray rather than one for the benefit of Maven Central?)

  2. is convoluted but boils down to disabling pom and module generation tasks for the extra publication and triggering a copy of the mavenJava publication's own pom into the folder of the extra publication, so that artifactoryPublish (and extractBuildInfo) can find it. The root cause for the empty pom is still unclear, because it appears there is some amount of randomness to it. (ie we have snaphots with empty poms then snapshots with correct pom). It seems to be related to the fact that any MavenPublication implicitly generates a pom and that the extra's pom (empty) would somehow replace the mavenJava pom (full) but not all the time.

from reactor-addons.

simonbasle avatar simonbasle commented on May 27, 2024

this is the sort of hoops solution 2 would make us jump through:

//this seems to be key in avoiding pom.xml overwrites while still allowing publishAllPublicationsToXxxRepository
tasks.all {
	if (it.name.contains("ArtifactoryOnlyPublication")) {
		println "disabling $it.name"
		enabled = false
	}
}

task copyPom(type: Copy) {
	dependsOn tasks.withType(GenerateMavenPom).matching {
		it.name.contains("MavenJava")
	}
	from "$buildDir/publications/mavenJava/pom-default.xml"
	into "$buildDir/publications/artifactoryOnly/"
}

if (rootProject.hasProperty("artifactory_publish_password")) {
	apply plugin: "com.jfrog.artifactory"

	afterEvaluate {
		tasks.getByName("extractModuleInfo").dependsOn(tasks.copyPom)
	}

    //...
}

from reactor-addons.

simonbasle avatar simonbasle commented on May 27, 2024

we'll be implementing solution 1 and publish the extra artifacts (docsZip, etc...) for the time being.

from reactor-addons.

mp911de avatar mp911de commented on May 27, 2024

FTR: https://repo1.maven.org/maven2/io/lettuce/lettuce-core/6.1.0.RELEASE/lettuce-core-6.1.0.RELEASE-docs.zip

from reactor-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.