Skip to content

Commit 594e90f

Browse files
author
Holger Brandl
committed
added CompilerOpts annotation; inc version to 1.2;
1 parent 076d103 commit 594e90f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group = 'com.github.holgerbrandl'
2-
version = '1.1'
2+
version = '1.2'
33

44
buildscript {
55
ext.kotlin_version = '1.1.60'

src/main/kotlin/ScriptDirectives.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ annotation class Include(val includePath: String)
2727
annotation class KotlinOpts(val runOptions: String)
2828

2929

30+
@Target(AnnotationTarget.FILE)
31+
@Retention(AnnotationRetention.SOURCE)
32+
@MustBeDocumented
33+
@Repeatable
34+
annotation class CompilerOpts(val kotlincFlags: String)
35+
36+
3037
// MavenRepository and DependsOnMaven are supported "as it" for compatibility with jupyter notebooks.
3138
// see https://github.com/kohesive/keplin/blob/master/keplin-maven-resolver/src/main/kotlin/uy/kohesive/keplin/kotlin/script/resolver/maven/MavenResolverAnnotations.kt
3239
// example https://github.com/kohesive/keplin/blob/a307e05eae091c99c665fe3da52a428fb0e10a6a/keplin-maven-resolver/src/test/kotlin/uy/kohesive/keplin/kotlin/script/resolver/maven/TestMavenScriptDependencies.kt#L38

0 commit comments

Comments
 (0)