From 70eaa0ec75b06a81829c9b2ca16ab6138a64274a Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Wed, 18 Jul 2018 08:53:39 +0200 Subject: [PATCH] Cleanup annotations in script-util: remove unused targets and runtime retention --- .../kotlin/org/jetbrains/kotlin/script/util/annotations.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libraries/tools/kotlin-script-util/src/main/kotlin/org/jetbrains/kotlin/script/util/annotations.kt b/libraries/tools/kotlin-script-util/src/main/kotlin/org/jetbrains/kotlin/script/util/annotations.kt index 31c43dce3c0..94e82e291c7 100644 --- a/libraries/tools/kotlin-script-util/src/main/kotlin/org/jetbrains/kotlin/script/util/annotations.kt +++ b/libraries/tools/kotlin-script-util/src/main/kotlin/org/jetbrains/kotlin/script/util/annotations.kt @@ -18,13 +18,11 @@ package org.jetbrains.kotlin.script.util // in case of flat or direct resolvers the value should be a direct path or file name of a jar respectively // in case of maven resolver the maven coordinates string is accepted (resolved with com.jcabi.aether library) -@Target(AnnotationTarget.FILE, AnnotationTarget.EXPRESSION, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) -@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.FILE) annotation class DependsOn(val value: String = "", val groupId: String = "", val artifactId: String = "", val version: String = "") // only flat directory repositories are supported now, so value should be a path to a directory with jars // TODO: support other types of repos -@Target(AnnotationTarget.FILE, AnnotationTarget.EXPRESSION, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) -@Retention(AnnotationRetention.RUNTIME) +@Target(AnnotationTarget.FILE) annotation class Repository(val value: String = "", val id: String = "", val url: String = "")