4
4
@Retention(AnnotationRetention .SOURCE )
5
5
@MustBeDocumented
6
6
@Repeatable
7
- annotation class DependsOn (vararg val artifactLocators : String )
7
+ annotation class DependsOn (vararg val artifactCoordinates : String )
8
8
9
9
@Target(AnnotationTarget .FILE )
10
10
@Retention(AnnotationRetention .SOURCE )
@@ -15,43 +15,58 @@ annotation class EntryPoint(val value: String)
15
15
@Retention(AnnotationRetention .SOURCE )
16
16
@MustBeDocumented
17
17
@Repeatable
18
- annotation class Include (val includePath : String )
18
+ @Deprecated(
19
+ " @file:Include(paths) is deprecated in favor of @file:Import()" ,
20
+ ReplaceWith (" @file:Import(paths)" ),
21
+ DeprecationLevel .WARNING
22
+ )
23
+ annotation class Include (vararg val paths : String )
19
24
20
25
@Target(AnnotationTarget .FILE )
21
26
@Retention(AnnotationRetention .SOURCE )
22
27
@MustBeDocumented
23
28
@Repeatable
24
- annotation class Import (val includePath : String )
29
+ annotation class Import (vararg val paths : String )
25
30
26
31
@Target(AnnotationTarget .FILE )
27
32
@Retention(AnnotationRetention .SOURCE )
28
33
@MustBeDocumented
29
34
@Repeatable
30
- annotation class KotlinOpts (val runOptions : String )
35
+ @Deprecated(
36
+ " @file:KotlinOpts(options) is deprecated in favor of @file:KotlinOptions()" ,
37
+ ReplaceWith (" @file:KotlinOptions(options)" ),
38
+ DeprecationLevel .WARNING
39
+ )
40
+ annotation class KotlinOpts (vararg val options : String )
31
41
32
42
@Target(AnnotationTarget .FILE )
33
43
@Retention(AnnotationRetention .SOURCE )
34
44
@MustBeDocumented
35
45
@Repeatable
36
- annotation class KotlinOptions (val runOptions : String )
46
+ annotation class KotlinOptions (vararg val options : String )
37
47
38
48
@Target(AnnotationTarget .FILE )
39
49
@Retention(AnnotationRetention .SOURCE )
40
50
@MustBeDocumented
41
51
@Repeatable
42
- annotation class CompilerOpts (val kotlincFlags : String )
52
+ @Deprecated(
53
+ " @file:CompilerOpts(options) is deprecated in favor of @file:CompilerOptions()" ,
54
+ ReplaceWith (" @file:CompilerOptions(options)" ),
55
+ DeprecationLevel .WARNING
56
+ )
57
+ annotation class CompilerOpts (vararg val options : String )
43
58
44
59
@Target(AnnotationTarget .FILE )
45
60
@Retention(AnnotationRetention .SOURCE )
46
61
@MustBeDocumented
47
62
@Repeatable
48
- annotation class CompilerOptions (val kotlincFlags : String )
63
+ annotation class CompilerOptions (vararg val options : String )
49
64
50
65
@Target(AnnotationTarget .FILE )
51
66
@Retention(AnnotationRetention .SOURCE )
52
67
@MustBeDocumented
53
68
@Repeatable
54
- annotation class Repository (val url : String )
69
+ annotation class Repository (val url : String , val user : String = " " , val password : String = " " )
55
70
56
71
// MavenRepository and DependsOnMaven are supported "as it" for compatibility with jupyter notebooks.
57
72
// see https://github.com/kohesive/keplin/blob/master/keplin-maven-resolver/src/main/kotlin/uy/kohesive/keplin/kotlin/script/resolver/maven/MavenResolverAnnotations.kt
@@ -61,9 +76,19 @@ annotation class Repository(val url: String)
61
76
@Target(AnnotationTarget .FILE )
62
77
@Retention(AnnotationRetention .SOURCE )
63
78
@Repeatable
64
- annotation class DependsOnMaven (val artifactLocator : String )
79
+ @Deprecated(
80
+ " @file:DependsOnMaven(artifactCoordinates) is deprecated in favor of @file:DependsOn()" ,
81
+ ReplaceWith (" @file:DependsOn(artifactCoordinates)" ),
82
+ DeprecationLevel .WARNING
83
+ )
84
+ annotation class DependsOnMaven (val artifactCoordinates : String )
65
85
66
86
@Target(AnnotationTarget .FILE )
67
87
@Retention(AnnotationRetention .SOURCE )
68
88
@Repeatable
89
+ @Deprecated(
90
+ " @file:MavenRepository(id, url, user, password) is deprecated in favor of @file:Repository()" ,
91
+ ReplaceWith (" @file:Repository(url, user, password)" ),
92
+ DeprecationLevel .WARNING
93
+ )
69
94
annotation class MavenRepository (val id : String , val url : String , val user : String = " " , val password : String = " " )
0 commit comments