Skip to content

Commit 83243b6

Browse files
committed
Changed pass to password and added basic javadoc (see #1)
1 parent 6eb65ec commit 83243b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/main/kotlin/ScriptDirectives.kt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,13 @@ annotation class DependsOnMaven(val artifactLocator: String)
4444
// in contrast to the original version we make the id mandatory here.
4545
// This keeps ensures compatiblity with keplin but eases parsing
4646
//annotation class MavenRepository(val id: String = "", val url: String)
47-
annotation class MavenRepository(val id: String, val url: String, val user: String = "", val pass: String = "")
47+
48+
/**
49+
* Declare a maven repository that will be used by kscript to resole dependencies
50+
*
51+
* @param id A user-defined name for this repository
52+
* @param url The endpoint under which maven will find the repo
53+
* @param user Optional user name
54+
* @param password Optional password (required if user is defined)
55+
*/
56+
annotation class MavenRepository(val id: String, val url: String, val user: String = "", val password: String = "")

0 commit comments

Comments
 (0)