SamWithReceiver: Add general-purpose plugin and Gradle/Maven integrations
This commit is contained in:
committed by
Yan Zhulanow
parent
db3172a750
commit
d07fd52c43
@@ -63,6 +63,9 @@ public interface KotlinPaths {
|
||||
@NotNull
|
||||
File getNoArgPluginJarPath();
|
||||
|
||||
@NotNull
|
||||
File getSamWithReceiverJarPath();
|
||||
|
||||
@NotNull
|
||||
File getCompilerPath();
|
||||
|
||||
|
||||
@@ -106,6 +106,12 @@ public class KotlinPathsFromHomeDir implements KotlinPaths {
|
||||
return getLibraryFile(PathUtil.NOARG_PLUGIN_JAR_NAME);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public File getSamWithReceiverJarPath() {
|
||||
return getLibraryFile(PathUtil.SAM_WITH_RECEIVER_PLUGIN_JAR_NAME);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public File getCompilerPath() {
|
||||
|
||||
@@ -33,6 +33,7 @@ public class PathUtil {
|
||||
public static final String JS_LIB_10_JAR_NAME = "kotlin-jslib.jar";
|
||||
public static final String ALLOPEN_PLUGIN_JAR_NAME = "allopen-compiler-plugin.jar";
|
||||
public static final String NOARG_PLUGIN_JAR_NAME = "noarg-compiler-plugin.jar";
|
||||
public static final String SAM_WITH_RECEIVER_PLUGIN_JAR_NAME = "sam-with-receiver-compiler-plugin.jar";
|
||||
public static final String JS_LIB_SRC_JAR_NAME = "kotlin-stdlib-js-sources.jar";
|
||||
public static final String KOTLIN_JAVA_RUNTIME_JAR = "kotlin-runtime.jar";
|
||||
public static final String KOTLIN_JAVA_RUNTIME_JRE7_JAR = "kotlin-stdlib-jre7.jar";
|
||||
|
||||
Reference in New Issue
Block a user