You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<1> Adds a Maven repository that uses the one official supported by the JRuby group. In order to use this, GEM dependencies should all be placed in the `rubygems` group.
39
46
<2> Adds a custom Maven repository that will proxy a GEMs repository. In order to use this, GEM dependencies should all be placed in the `rubygems` group.
40
-
<3> Adds a custom Maven repository that will proxy a GEMs repository, but allocate a custom dedicated Maven group. This is useful where you would want to use both the public repository and your own, but you want to save network query traffic, by only query repositories where you know the dependencies should exist.
47
+
<3> Adds a custom Maven repository that will proxy a GEMs repository, but allocate a custom dedicated Maven group. This is useful where you would want to use both the public repository and your own, but you want to save network query traffic, by only query repositories where you know the dependencies should exist.
48
+
<4> Proxy rubygems.org directly and use `rubygems` as the Maven coordinate group.
49
+
<5> Proxy rubygems.org directly and allow prerelease GEMs to be considered. Use `rubygems` as the Maven coordinate group.
50
+
<6> Proxy a custom rubygems repository.
51
+
<7> Proxy a custom rubygems repository and assign a custom Maven coordinate group.
52
+
53
+
== Advanced
54
+
55
+
=== Customising GEM resolving
56
+
57
+
By default the `rubygems` configuration and others added via `ruby.mavengems()` and `ruby.gems()` will have additional resolving strategies applied that mimicks GEM behaviour rather then Gradle behaviour. It is possible to customise this behaviour.
58
+
59
+
.build.gradle
60
+
[source,groovy]
61
+
----
62
+
gemResolverStrategy {
63
+
excludeConfigurations 'foo', 'bar' // <1>
64
+
excludeModule 'foo.*' // <2>
65
+
excludeModule 'foo.*', /1\.2.*/ // <3>
66
+
useGemVersionResolver 'gems2'
67
+
}
68
+
----
69
+
<1> Exclude configurations `foo` and `bar` from being considered for GEM resolver strategies.
70
+
<2> Exclude module that matches regular expression from GEM resolver strategies.
71
+
<3> Exclude module and version that matches regular expression from GEM resolver strategies.
72
+
<4> Apply GEM resolver strategies to a specific configuration.
0 commit comments