Comments (8)
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.
@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.
@veiz the library is already available through mavenCentral and jcenter. Why are you trying to get it from jitpack?
from delayedprogress.
@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.
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.
@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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delayedprogress.