Skip to content
Merged
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
Next Next commit
Fix tests to not use project
  • Loading branch information
gatesn committed Aug 2, 2019
commit 24c16a493c31c0cb3f6dc6091049b63c2382d334
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public final void checkImplicitDependencies() {
.filter(artifact -> !shouldIgnore(artifact))
.collect(Collectors.toList());
if (!usedButUndeclared.isEmpty()) {
// TODO(dfox): suggest project(':project-name') when a jar actually comes from this project!
// TODO(dfox): #123 - suggest project(':project-name') when a jar actually comes from this project!
String suggestion = usedButUndeclared.stream()
.map(artifact -> String.format(" implementation '%s:%s'",
artifact.getModuleVersion().getId().getGroup(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ class BaselineIdeaTest extends Specification {
project.plugins.hasPlugin(BaselineIdea.class)
}

def testGitHubUriExtraction(String remote, String project) {
def testGitHubUriExtraction(String remoteUri, String projectUri) {
expect:
assert BaselineIdea.gitHubProjectFromRemote(new URIish(remote)) == project
assert BaselineIdea.gitHubProjectFromRemote(new URIish(remoteUri)) == projectUri

where:
remote | project
remoteUri | projectUri
"git@github.com:palantir/gradle-baseline.git" | "https://github.com/palantir/gradle-baseline"
"git@github.my.company:palantir/gradle-baseline.git" | "https://github.my.company/palantir/gradle-baseline"
"https://github.com/palantir/gradle-baseline.git" | "https://github.com/palantir/gradle-baseline"
Expand Down