Build: Remove intellijEnforceCommunitySdk flag, use currentIde instead

Setup ultimate repositories only when currentIde is Intellij
This commit is contained in:
Vyacheslav Gerasimov
2019-03-04 14:08:23 +03:00
parent 683c2b0434
commit 9f64e0fa69
4 changed files with 1 additions and 6 deletions
@@ -30,11 +30,9 @@ private fun Project.intellijRepoDir() = File("${project.rootDir.absoluteFile}/bu
fun RepositoryHandler.intellijSdkRepo(project: Project): IvyArtifactRepository = ivy {
val baseDir = project.intellijRepoDir()
val intellijEnforceCommunitySdk = project.getBooleanProperty("intellijEnforceCommunitySdk") == true
setUrl(baseDir)
if (!intellijEnforceCommunitySdk) {
if (IdeVersionConfigurator.currentIde.kind == Ide.Kind.IntelliJ) {
ivyPattern("${baseDir.canonicalPath}/[organisation]/[revision]/[module]Ultimate.ivy.xml")
ivyPattern("${baseDir.canonicalPath}/[organisation]/[revision]/intellijUltimate.plugin.[module].ivy.xml")
artifactPattern("${baseDir.canonicalPath}/[organisation]/[revision]/[module]Ultimate/lib/[artifact](-[classifier]).jar")
-1
View File
@@ -10,4 +10,3 @@ kotlin.compiler.newInferenceEnabled=true
#signingRequired=true
intellijUltimateEnabled=false
intellijEnforceCommunitySdk=true
-1
View File
@@ -10,4 +10,3 @@ kotlin.compiler.newInferenceEnabled=true
#signingRequired=true
intellijUltimateEnabled=false
intellijEnforceCommunitySdk=true
-1
View File
@@ -10,4 +10,3 @@ kotlin.compiler.newInferenceEnabled=true
#signingRequired=true
intellijUltimateEnabled=false
intellijEnforceCommunitySdk=true