Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Cleanup rubocop issues
  • Loading branch information
zendern committed Mar 6, 2021
commit 74eb7f96e63ed0828fb1b5075981694d2acf444a
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def repository_urls
repository_urls += own_buildfile_repository_urls
repository_urls = repository_urls.uniq

return (repository_urls + [CENTRAL_REPO_URL]).uniq
(repository_urls + [CENTRAL_REPO_URL]).uniq
end

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,30 @@
)
end

context "when there is only maven central defined" do
let(:buildfile_fixture_name) { "maven_central_only.gradle" }
context "when there is only maven central defined" do
let(:buildfile_fixture_name) { "maven_central_only.gradle" }

it "it is not duplicated" do
expect(repository_urls).to match_array(
%w(
https://repo.maven.apache.org/maven2
it "it is not duplicated" do
expect(repository_urls).to match_array(
%w(
https://repo.maven.apache.org/maven2
)
)
)
end
end
end

context "when there are private only repository declarations" do
let(:buildfile_fixture_name) { "private_only_repos_build.gradle" }
context "when there are private only repository declarations" do
let(:buildfile_fixture_name) { "private_only_repos_build.gradle" }

it "includes private repo as well as maven central as a fallback" do
expect(repository_urls).to match_array(
%w(
https://nexus.noyoucanthaveaccess.net/repository/maven
https://repo.maven.apache.org/maven2
it "includes private repo as well as maven central as a fallback" do
expect(repository_urls).to match_array(
%w(
https://nexus.noyoucanthaveaccess.net/repository/maven
https://repo.maven.apache.org/maven2
)
)
)
end
end
end

context "some of which are for subprojects" do
let(:buildfile_fixture_name) { "subproject_repos.gradle" }
Expand Down