-
Notifications
You must be signed in to change notification settings - Fork 0
Update ToolBase and config
#46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
608063a
fe3c454
ad96f78
12589aa
c8b7d15
063deca
e8a5bbd
f3ae2a4
15c7307
e1cdbfe
62bf593
46dde82
c7afee6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -58,16 +58,22 @@ abstract class Dependency { | |||||||||||
| /** | ||||||||||||
| * The [modules] given with the [version]. | ||||||||||||
| */ | ||||||||||||
| final val artifacts: Map<String, String> by lazy { | ||||||||||||
| val artifacts: Map<String, String> by lazy { | ||||||||||||
| modules.associateWith { "$it:$version" } | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * Obtains full Maven coordinates for the requested [module]. | ||||||||||||
| * Obtains full Maven coordinates for the requested [module] and [version]. | ||||||||||||
| */ | ||||||||||||
| fun artifact(module: String): String = artifacts[module] ?: error( | ||||||||||||
| "The dependency `${this::class.simpleName}` does not declare a module `$module`." | ||||||||||||
| ) | ||||||||||||
| fun artifact(module: String, version: String = ""): String { | ||||||||||||
| return if (version.isEmpty()) { | ||||||||||||
| artifacts[module] ?: error( | ||||||||||||
| "The dependency `${this::class.simpleName}` does not declare a module `$module`." | ||||||||||||
| ) | ||||||||||||
| } else { | ||||||||||||
| "$module:$version" | ||||||||||||
|
||||||||||||
| "$module:$version" | |
| if (!artifacts.containsKey(module)) { | |
| error("The dependency `${this::class.simpleName}` does not declare a module `$module`.") | |
| } | |
| "$module:$version" |
Uh oh!
There was an error while loading. Please reload this page.