Giter Site home page Giter Site logo

Comments (8)

jitpack-io avatar jitpack-io commented on June 14, 2024

Hi @veiz

The issues is that it tries to upload to sonatype.org during the build.
Would be easy to make it work if you used gradle properties like here: https://github.com/chrisbanes/gradle-mvn-push/blob/master/gradle-mvn-push.gradle#L24-L40
That way it would work locally and on JitPack.

Cheers

from delayedprogress.

tasomaniac avatar tasomaniac commented on June 14, 2024

@jitpack-io are you sure? I am using a customized version of that code from @chrisbanes

I configured the task uploadArchives to upload archives to sonatype. I want my library to be hosted on sonatype.

So, I feel like this is completely @jitpack-io 's responsibility. Jitpack is trying to build and serve my library but you fail. What can I do?

from delayedprogress.

tasomaniac avatar tasomaniac commented on June 14, 2024

@veiz the library is already available through mavenCentral and jcenter. Why are you trying to get it from jitpack?

from delayedprogress.

jitpack-io avatar jitpack-io commented on June 14, 2024

@tasomaniac Ah, I see, you're right. The customized version uses properties for username/password and only the urls are hardcoded:
https://github.com/tasomaniac/DelayedProgress/blob/master/gradle/gradle-mvn-push.gradle#L42

A tiny change would be to use properties for urls as well:
https://github.com/chrisbanes/gradle-mvn-push/blob/master/gradle-mvn-push.gradle#L24-L32
Happy to submit a PR if you're interested.

from delayedprogress.

tasomaniac avatar tasomaniac commented on June 14, 2024

I will of course accept that PR if you send it.

But the problem here is with @jitpack-io I think. Are you seriously gonna send PRs to every project on github that have hardcoded reference to sonatype. You should be able to grab the artefact automatically.

from delayedprogress.

jitpack-io avatar jitpack-io commented on June 14, 2024

@tasomaniac That's a fair point. Grabbing the artifact automatically would be best but it's not always obvious what the artefact is and what are it's dependencies. Will look into it though

from delayedprogress.

jitpack-io avatar jitpack-io commented on June 14, 2024

Good news guys, it's building fine now. Many thanks to @tasomaniac for the suggestion!
https://jitpack.io/com/github/tasomaniac/DelayedProgress/0.3/build.log

from delayedprogress.

tasomaniac avatar tasomaniac commented on June 14, 2024

I don't understand how did you solve it :) You are still using uploadArchives task. But cool.

from delayedprogress.

Related Issues (7)

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.