We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8234ca6 commit 82ab219Copy full SHA for 82ab219
src/main/kotlin/kscript/app/Script.kt
@@ -205,6 +205,9 @@ fun Script.collectRepos(): List<MavenRepo> {
205
.map { keyVal -> keyVal.split(keyValSep).map { it.trim(' ', '\"') }.let{ it.first() to it.last()}}
206
.toMap()
207
208
+ if (annotationParams.size < 2) {
209
+ throw IllegalArgumentException("Missing ${2 - annotationParams.size} of the required arguments for @file:MavenRepository(id, url)")
210
+ }
211
MavenRepo(
212
namedArgs.getOrDefault("id", annotationParams[0]),
213
namedArgs.getOrDefault("url", annotationParams[1]),
0 commit comments