diff --git a/python/educational-core/build.gradle b/python/educational-core/build.gradle index 9bafbd654549..cb5e3d1709bf 100644 --- a/python/educational-core/build.gradle +++ b/python/educational-core/build.gradle @@ -39,12 +39,12 @@ buildDir = new File(rootProject.projectDir, "gradleBuild/" + project.name) intellij { pluginName 'educational-core' - String ideaPath = getIdeaPath() - if (ideaPath == null) { - version ideaVersion - } - else { + if (project.hasProperty('ideaPath')) { localPath ideaPath + } else { + if (project.hasProperty('ideaVersion')) { + version ideaVersion + } } updateSinceUntilBuild Boolean.valueOf(updateBuildNumber) downloadSources Boolean.valueOf(downloadIdeaSources) @@ -68,14 +68,4 @@ afterEvaluate { tasks.getByName('buildPlugin') { archiveName = "$intellij.pluginName-$version-${buildNumber}.zip" } -} -private static String getIdeaPath() { - Properties properties = new Properties() - try { - properties.load(new FileInputStream("local.properties")) - return properties.getProperty('ideaPath') - } - catch (ignored) { - return null - } -} +} \ No newline at end of file diff --git a/python/educational-python/build.gradle b/python/educational-python/build.gradle index 9101af9912d9..75232284e849 100644 --- a/python/educational-python/build.gradle +++ b/python/educational-python/build.gradle @@ -4,16 +4,19 @@ buildscript { ext.kotlin_version = '1.0.6' repositories { mavenCentral() + maven { + url "https://oss.sonatype.org/content/repositories/snapshots/" + } + maven { + url 'http://dl.bintray.com/jetbrains/intellij-plugin-service' + } } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT" } } -plugins { - id "org.jetbrains.intellij" version "0.0.39" -} - subprojects { apply plugin: 'java' apply plugin: 'kotlin' @@ -94,6 +97,14 @@ project(':Edu-Python') { intellij { pluginName 'Edu-Python' + + if (project.hasProperty('ideaPath')) { + localPath ideaPath + } else { + if (project.hasProperty('ideaVersion')) { + version ideaVersion + } + } } afterEvaluate {