Coder Social home page Coder Social logo

Comments (3)

rtyler avatar rtyler commented on July 30, 2024

What about a boolean flag like jruby.defaultRepositories which could be set to false and would disable that whole block of repositories but could be defaulted to true?

I think that might be the best middle-ground

from jruby-gradle-plugin.

ysb33r avatar ysb33r commented on July 30, 2024

I'll have a go at that

from jruby-gradle-plugin.

ysb33r avatar ysb33r commented on July 30, 2024

This is relatively easy to fix, but there is are two problems with defaultGemRepo and gemrepo_url.

The first is simple: i don't know why there are two properties basically doing the same thing.

The second is the real issue:

The idea I had is that we add defaultRepositories=true. If that is not changed to false then rubygemRelease() will be added as the standard rubygems repository.

The 'jrubyPluginCustomGemRepoUrl` test is currently failing, but I believe the positive coming out of it is that we need to make a small design change.

If someone do not want the default repositories, just let them supply their own i.e.

repositories {
  maven { url : 'http://this.is/where/we/get/rubygems/from' }
}

Then there is no messsing about and it follows gradle convention.

The open question is: Do you have any existing projects that rely on defaultGemRepo and gemrepo_url? If not, the change can be made relatively easily.

from jruby-gradle-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.