|
|
@ -33,9 +33,9 @@ class KotlinPluginAction implements PluginApplicationAction {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void execute(Project project) {
|
|
|
|
public void execute(Project project) {
|
|
|
|
String kotlinVersion = project.getPlugins().getPlugin(KotlinPluginWrapper.class).getKotlinPluginVersion();
|
|
|
|
|
|
|
|
ExtraPropertiesExtension extraProperties = project.getExtensions().getExtraProperties();
|
|
|
|
ExtraPropertiesExtension extraProperties = project.getExtensions().getExtraProperties();
|
|
|
|
if (!extraProperties.has("kotlin.version")) {
|
|
|
|
if (!extraProperties.has("kotlin.version")) {
|
|
|
|
|
|
|
|
String kotlinVersion = project.getPlugins().getPlugin(KotlinPluginWrapper.class).getKotlinPluginVersion();
|
|
|
|
extraProperties.set("kotlin.version", kotlinVersion);
|
|
|
|
extraProperties.set("kotlin.version", kotlinVersion);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
enableJavaParametersOption(project);
|
|
|
|
enableJavaParametersOption(project);
|
|
|
|