diff --git a/.idea/artifacts/standalone_jps.xml b/.idea/artifacts/standalone_jps.xml
deleted file mode 100644
index 94d485a22695..000000000000
--- a/.idea/artifacts/standalone_jps.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
- $PROJECT_DIR$/build/lib/jps
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/libraries/jps_build_script_dependencies_bootstrap.xml b/.idea/libraries/jps_build_script_dependencies_bootstrap.xml
new file mode 100644
index 000000000000..14b15ac7cd10
--- /dev/null
+++ b/.idea/libraries/jps_build_script_dependencies_bootstrap.xml
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build/dependencies/setupBuildScriptsDeps.gradle b/build/dependencies/setupBuildScriptsDeps.gradle
index f5fdd3c6f8de..dc74bf2558df 100644
--- a/build/dependencies/setupBuildScriptsDeps.gradle
+++ b/build/dependencies/setupBuildScriptsDeps.gradle
@@ -6,6 +6,7 @@ repositories {
maven { url "https://cache-redirector.jetbrains.com/intellij-third-party-dependencies" }
maven { url "https://cache-redirector.jetbrains.com/jetbrains.bintray.com/test-discovery" }
maven { url "https://cache-redirector.jetbrains.com/jcenter.bintray.com" }
+ maven { url 'https://www.jetbrains.com/intellij-repository/releases' }
}
configurations {
@@ -13,39 +14,12 @@ configurations {
testDiscoveryDeps
}
-List projectLibraries = [
- "ASM",
- "jetbrains-annotations-java5",
- "Groovy",
- "cli-parser",
- "protobuf",
- "OroMatcher",
- "commons-codec",
- "commons-logging",
- "commons-compress",
- "Trove4j",
- "JDOM",
- "NanoXML",
- "Guava",
- "JUnit4",
- "netty-codec-http",
- "lz4-java",
- "gant-groovy",
- "Log4J",
- "Slf4j",
- "jna",
- "jgoodies-forms",
- "http-client",
- "maven-model",
- "gson"
-]
-
dependencies {
- (projectLibraries.collect { loadProjectLibraryProperties(it) } +
- loadModuleLibraryProperties("aether-dependency-resolver/intellij.java.aetherDependencyResolver.iml")
- ).each { properties ->
- buildScriptsDeps(properties.first, { transitive = properties.second })
- }
+ def jpsLibraryCoordinates = loadProjectLibraryProperties("jps-build-script-dependencies-bootstrap").first
+ def jpsLibraryVersion = jpsLibraryCoordinates.substring(jpsLibraryCoordinates.lastIndexOf(':')+1)
+ buildScriptsDeps(jpsLibraryCoordinates)
+ buildScriptsDeps('commons-cli:commons-cli:1.2')
+ buildScriptsDeps('com.jetbrains.intellij.platform:test-framework-core:' + jpsLibraryVersion)
}
/**
@@ -85,27 +59,6 @@ private Tuple2 loadProjectLibraryProperties(String libraryName,
loadLibraryProperties(propertiesTags.first())
}
-private List> loadModuleLibraryProperties(String moduleFileRelativePath) {
- File file = new File(project.rootDir, "../../$moduleFileRelativePath")
- if (!file.exists()) {
- throw new GradleException("Cannot find $moduleFileRelativePath module: $file doesn't exist")
- }
-
- def root = new XmlParser().parse(file)
- def rootManager = root.component?.find { it.@name == 'NewModuleRootManager' }
- if (rootManager == null) {
- throw new GradleException("Cannot find 'NewModuleRootManager' component in $file")
- }
- rootManager.orderEntry.findAll { it.@type == 'module-library' }.collect {
- def libraryTag = it.library.first()
- if (libraryTag.properties.isEmpty()) {
- throw new GradleException("Library '${libraryTag.'@name'}' in $moduleFileRelativePath is not a repository library")
- }
- //noinspection GroovyAssignabilityCheck
- loadLibraryProperties(libraryTag.properties.first())
- }
-}
-
private static Tuple2 loadLibraryProperties(Node propertiesTag) {
new Tuple2(propertiesTag.'@maven-id', propertiesTag.'@include-transitive-deps' != "false")
}
\ No newline at end of file
diff --git a/build/gant.xml b/build/gant.xml
index 581250a27ddb..86ec9628be16 100644
--- a/build/gant.xml
+++ b/build/gant.xml
@@ -43,17 +43,11 @@
-
-
-
-
-
-
diff --git a/build/intellij.idea.community.build.iml b/build/intellij.idea.community.build.iml
index 7e188243095e..08ba75f534f1 100644
--- a/build/intellij.idea.community.build.iml
+++ b/build/intellij.idea.community.build.iml
@@ -11,35 +11,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/build/lib/jps/aether-dependency-resolver.jar b/build/lib/jps/aether-dependency-resolver.jar
deleted file mode 100644
index e2072e03c844..000000000000
Binary files a/build/lib/jps/aether-dependency-resolver.jar and /dev/null differ
diff --git a/build/lib/jps/antlayout.jar b/build/lib/jps/antlayout.jar
deleted file mode 100644
index 9bd055ccd6f6..000000000000
Binary files a/build/lib/jps/antlayout.jar and /dev/null differ
diff --git a/build/lib/jps/groovy-jps-plugin.jar b/build/lib/jps/groovy-jps-plugin.jar
deleted file mode 100644
index a0fd9dfef832..000000000000
Binary files a/build/lib/jps/groovy-jps-plugin.jar and /dev/null differ
diff --git a/build/lib/jps/groovy-rt-constants.jar b/build/lib/jps/groovy-rt-constants.jar
deleted file mode 100644
index 2f4567142985..000000000000
Binary files a/build/lib/jps/groovy-rt-constants.jar and /dev/null differ
diff --git a/build/lib/jps/groovy_rt.jar b/build/lib/jps/groovy_rt.jar
deleted file mode 100644
index f044bcece79a..000000000000
Binary files a/build/lib/jps/groovy_rt.jar and /dev/null differ
diff --git a/build/lib/jps/jps-builders-6.jar b/build/lib/jps/jps-builders-6.jar
deleted file mode 100644
index 0683e542d939..000000000000
Binary files a/build/lib/jps/jps-builders-6.jar and /dev/null differ
diff --git a/build/lib/jps/jps-builders.jar b/build/lib/jps/jps-builders.jar
deleted file mode 100644
index 3e9a8e174994..000000000000
Binary files a/build/lib/jps/jps-builders.jar and /dev/null differ
diff --git a/build/lib/jps/jps-model.jar b/build/lib/jps/jps-model.jar
deleted file mode 100644
index d31e4c789ccb..000000000000
Binary files a/build/lib/jps/jps-model.jar and /dev/null differ
diff --git a/build/lib/jps/testFramework.core.jar b/build/lib/jps/testFramework.core.jar
deleted file mode 100644
index 447b46a97157..000000000000
Binary files a/build/lib/jps/testFramework.core.jar and /dev/null differ
diff --git a/build/lib/jps/ui-designer-jps-plugin.jar b/build/lib/jps/ui-designer-jps-plugin.jar
deleted file mode 100644
index 80d3cd5e5c45..000000000000
Binary files a/build/lib/jps/ui-designer-jps-plugin.jar and /dev/null differ
diff --git a/build/lib/jps/util.jar b/build/lib/jps/util.jar
deleted file mode 100644
index b9695f18cdcf..000000000000
Binary files a/build/lib/jps/util.jar and /dev/null differ
diff --git a/platform/build-scripts/groovy/org/jetbrains/intellij/build/CommunityLibraryLicenses.groovy b/platform/build-scripts/groovy/org/jetbrains/intellij/build/CommunityLibraryLicenses.groovy
index 9506ba898f77..7b7eec3e2f04 100644
--- a/platform/build-scripts/groovy/org/jetbrains/intellij/build/CommunityLibraryLicenses.groovy
+++ b/platform/build-scripts/groovy/org/jetbrains/intellij/build/CommunityLibraryLicenses.groovy
@@ -549,6 +549,7 @@ class CommunityLibraryLicenses {
jetbrainsLibrary("intellij-markdown"),
jetbrainsLibrary("intellij-test-discovery"),
jetbrainsLibrary("JPS"),
+ jetbrainsLibrary("jps-build-script-dependencies-bootstrap"),
jetbrainsLibrary("kotlin-reflect"),
jetbrainsLibrary("kotlin-script-runtime"),
jetbrainsLibrary("kotlin-stdlib-jdk8"),
diff --git a/platform/build-scripts/intellij.platform.buildScripts.iml b/platform/build-scripts/intellij.platform.buildScripts.iml
index fbbe02a5ed4d..e1f575c72301 100644
--- a/platform/build-scripts/intellij.platform.buildScripts.iml
+++ b/platform/build-scripts/intellij.platform.buildScripts.iml
@@ -8,28 +8,20 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy
index 361315993d92..656db3a189d0 100644
--- a/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy
+++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/compiler/GroovyCompilerTest.groovy
@@ -900,8 +900,8 @@ class AppTest {
addGroovyLibrary(anotherModule)
PsiTestUtil.addProjectLibrary(module, "junit", IntelliJProjectConfiguration.getProjectLibraryClassesRootPaths("JUnit3"))
- PsiTestUtil.addProjectLibrary(module, "cli", IntelliJProjectConfiguration.getModuleLibrary("intellij.idea.community.build", "commons-cli").classesPaths)
- PsiTestUtil.addProjectLibrary(anotherModule, "cli", IntelliJProjectConfiguration.getModuleLibrary("intellij.idea.community.build", "commons-cli").classesPaths)
+ PsiTestUtil.addProjectLibrary(module, "cli", IntelliJProjectConfiguration.getModuleLibrary("intellij.platform.buildScripts", "commons-cli").classesPaths)
+ PsiTestUtil.addProjectLibrary(anotherModule, "cli", IntelliJProjectConfiguration.getModuleLibrary("intellij.platform.buildScripts", "commons-cli").classesPaths)
myFixture.addFileToProject("a.groovy", "class Foo extends GroovyTestCase {}")
myFixture.addFileToProject("b.groovy", "class Bar extends CliBuilder {}")
diff --git a/python/build/intellij.pycharm.community.build.iml b/python/build/intellij.pycharm.community.build.iml
index 07e88f562e79..c6620ed22914 100644
--- a/python/build/intellij.pycharm.community.build.iml
+++ b/python/build/intellij.pycharm.community.build.iml
@@ -7,8 +7,6 @@
-
-
\ No newline at end of file