Compare commits

...

6 Commits

Author SHA1 Message Date
Schalk W. Cronjé fe46be32c9
Merge pull request #402 from ysb33r/master
Finalise 2.0.0 release
2020-01-17 23:38:19 +01:00
Schalk Cronje 5249a5829d Move ruby.gems() first in order of documentation 2020-01-17 23:20:46 +01:00
Schalk Cronje d764de4e8e Update license headers 2020-01-17 23:11:26 +01:00
Schalk Cronje 593f096279 Set version to 2.0.0 2020-01-17 19:23:26 +01:00
Schalk Cronje 6e1be93181 Describe repositories and GEM resolver strategy customisation (#378) 2020-01-17 19:19:04 +01:00
Schalk Cronje 60829c7ce4 Support JRuby Maven GEM proxy (#401) 2020-01-17 18:55:48 +01:00
88 changed files with 249 additions and 88 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,6 +1,6 @@
<!--
Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,6 +1,6 @@
<!--
Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
Permission is hereby granted, free of charge, to any person obtaining

View File

@ -13,3 +13,60 @@ This plugin offers the following functionality:
=== Compatibility
This plugin requires link:http://gradle.org[Gradle] 4.3 or better
=== Installing
.build.gradle
[source, groovy]
----
plugins {
id 'com.github.jruby-gradle.core' version 'VERSION-OF-PLUGIN'
}
----
=== Adding repositories
.build.gradle
[source,groovy]
----
repositories {
ruby.gems() // <1>
ruby.gems { // <2>
prerelease = true
}
ruby.gems('https://foo.bar') // <3>
ruby.gems('acme-rubygems', 'https://foo.bar') // <4>
ruby.mavengems() // <5>
ruby.mavengems('https://foo.bar') // <6>
ruby.mavengems('acme-rubygems', 'https://foo.bar') // <7>
}
----
<1> Proxy rubygems.org directly and use `rubygems` as the Maven coordinate group.
<2> Proxy rubygems.org directly and allow prerelease GEMs to be considered. Use `rubygems` as the Maven coordinate group.
<3> Proxy a custom rubygems repository.
<4> Proxy a custom rubygems repository and assign a custom Maven coordinate group.
<5> 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.
<6> 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.
<7> 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.
== Advanced
=== Customising GEM resolving
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.
.build.gradle
[source,groovy]
----
gemResolverStrategy {
excludeConfigurations 'foo', 'bar' // <1>
excludeModule 'foo.*' // <2>
excludeModule 'foo.*', /1\.2.*/ // <3>
useGemVersionResolver 'gems2'
}
----
<1> Exclude configurations `foo` and `bar` from being considered for GEM resolver strategies.
<2> Exclude module that matches regular expression from GEM resolver strategies.
<3> Exclude module and version that matches regular expression from GEM resolver strategies.
<4> Apply GEM resolver strategies to a specific configuration.

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
@ -31,6 +31,7 @@ import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.artifacts.repositories.ArtifactRepository
import org.gradle.api.artifacts.repositories.IvyArtifactRepository
import org.gradle.api.artifacts.repositories.MavenArtifactRepository
import org.gradle.util.GradleVersion
import org.ysb33r.grolifant.api.ClosureUtils
@ -163,6 +164,56 @@ class RepositoryHandlerExtension {
bindRepositoryToProxyServer(project.uri(uri), group, cfg)
}
/** Adds the Maven-GEMs proxy that is supported by the JRuby group.
*
* For supporting Gradle versions, this repository will only be consulted for artifacts that are in the
* {@code rubygems} group.
*
* @return Maven repository
*/
MavenArtifactRepository mavengems() {
bindToMavenRepository(MAVENGEMS_URI, DEFAULT_GROUP_NAME)
}
/** Adds a remote Maven-GEMs proxy.
*
* For supporting Gradle versions, this repository will only be consulted for artifacts that are in the
* {@code rubygems} group.
*
* @param uri Remote Maven-GEMs proxy
* @return Maven repository
*/
MavenArtifactRepository mavengems(Object uri) {
bindToMavenRepository(project.uri(uri), DEFAULT_GROUP_NAME)
}
/** Adds a remote Maven-GEMs proxy anbd allocate a dedicated group for it.
*
* For supporting Gradle versions, this repository will only be consulted for artifacts that are in the
* specified group.
*
* @param group Maven group name
* @param uri Remote Maven-GEMs proxy
* @return Maven repository
*/
MavenArtifactRepository mavengems(String group, Object uri) {
bindToMavenRepository(project.uri(uri), group)
}
private MavenArtifactRepository bindToMavenRepository(
URI serverUri,
String group
) {
MavenArtifactRepository repo = project.repositories.maven(new Action<MavenArtifactRepository>() {
@Override
void execute(MavenArtifactRepository mvn) {
mvn.url = serverUri
}
})
restrictToGems(repo, group)
repo
}
private ArtifactRepository bindRepositoryToProxyServer(
URI serverUri,
String group,
@ -220,4 +271,5 @@ class RepositoryHandlerExtension {
private static final boolean HAS_CONTENT_FEATURE = GradleVersion.current() >= GradleVersion.version('5.1')
private static final boolean HAS_SECURE_PROTOCOL_FEATURE = GradleVersion.current() >= GradleVersion.version('6.0')
private static final URI RUBYGEMS_URI = 'https://rubygems.org'.toURI()
private static final URI MAVENGEMS_URI = 'https://mavengems.jruby.org'.toURI()
}

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
@ -102,7 +102,7 @@ class GemResolverStrategy {
/** Whether the GEM version resolving strategy should be applied for a specific module.
*
* In most cases this will alsways be {@code true} unless a specific rule excludes it.
* In most cases this will always be {@code true} unless a specific rule excludes it.
*
* @param mvs Module version selector
* @return Whether the Bundler-like version selector atregty may be applied

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/**
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -0,0 +1,52 @@
/*
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.github.jrubygradle.api.core
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification
class RepositoryHandlerExtensionSpec extends Specification {
Project project = ProjectBuilder.builder().build()
void 'Add Maven repository'() {
when:
project.allprojects {
apply plugin : JRubyCorePlugin
repositories {
ruby {
mavengems()
mavengems('https://goo1')
mavengems('goo2','https://goo2')
}
}
}
then:
project.repositories.size() == 3
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,6 +1,6 @@
version=2.0.0-alpha.7
version=2.0.0
group=com.github.jruby-gradle
copyrightYear=2014-2019
copyrightYear=2014-2020
org.gradle.daemon=true
org.gradle.caching=true

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,6 +1,6 @@
<!--
Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
#
# Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
# Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
# Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014-2019, R. Tyler Croy <rtyler@brokenco.de>,
* Copyright (c) 2014-2020, R. Tyler Croy <rtyler@brokenco.de>,
* Schalk Cronje <ysb33r@gmail.com>, Christian Meier, Lookout, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining