Git Product home page Git Product logo

Comments (10)

bmuschko avatar bmuschko commented on May 27, 2024

These days I am not directly publishing to Maven Central anymore. I always go through Bintray which provides a convenient way to sync with Maven Central. Therefore, I have little incentive to spend time on this functionality.

If you are interested in having this functionality, you'll need to provide a pull request. The Nexus REST API sounds like the right approach. In case you go are planning to implement this functionality, please try to avoid additional dependencies on HTTP libraries especially Groovy's HTTPBuilder.

from gradle-nexus-plugin.

szpak avatar szpak commented on May 27, 2024

What do you propose to use instead of HTTPBuilder? Running curl process from OS?

from gradle-nexus-plugin.

bmuschko avatar bmuschko commented on May 27, 2024

HttpClient or better HttpURLConnection. Thinking about it, I don't actually want the functionality in this plugin. It should be a separate, complimentary plugin.

from gradle-nexus-plugin.

bmuschko avatar bmuschko commented on May 27, 2024

I am going to close this issue. It should be easy to write a plugin that applies and augments the functionality of the Nexus plugin with tasks using the Nexus API. Either way I don't see the functionality in this plugin. Also, I'd expect quite a bit of maintenance & required testing code coming out of this functionality which I won't have the time for. Should you ever create such a plugin, let me know and I am going to link to it from this plugin's documentation page.

from gradle-nexus-plugin.

szpak avatar szpak commented on May 27, 2024

I decided to write that plugin and in the end it turned out that there are some corner cases to support (so probably good for you that you haven't decide to have that feature :) ).
My plugin is upload mechanism agnostic (it just uses REST API), but I was thinking about better integration with gradle-nexus-plugin (when available). I wanted to reuse credentials provided for your plugin, but looking at your code it seems I could only try to find nexusPassword/nexusUsername or try to find upload task(s) and get credentials from they (if available). Do you have any other idea what could be done on that field?

from gradle-nexus-plugin.

bmuschko avatar bmuschko commented on May 27, 2024

I am not quite sure what other credentials you are looking for other than username/password. If you can give me more information, I might be able to give you a better answer.

from gradle-nexus-plugin.

szpak avatar szpak commented on May 27, 2024

After post my comment I realized that your plugin does not keep credentials itself, but only set authentication in a repository.

I was able to implement getting credentials with manually configured authentication section, but to use credentials set by your plugin I would need in addition to call my code in taskGraph.whenReady {} closure. That needs #47 and in addition one question to you: do taskGraph.whenReady {} closures are executed in the order they were created or it is not guaranteed?

from gradle-nexus-plugin.

bmuschko avatar bmuschko commented on May 27, 2024

Order is not guarenteed by Gradle.

from gradle-nexus-plugin.

szpak avatar szpak commented on May 27, 2024

Order is not guarenteed by Gradle.

So to be sure to be after your taskGraph.whenReady do I have to it in doFirst in my task or there is a better way?

from gradle-nexus-plugin.

bmuschko avatar bmuschko commented on May 27, 2024

I think I'd have to see the code but doFirst is a valid option. The only downside is going to be that you can't use the fields as input properties for your tasks.

from gradle-nexus-plugin.

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.