Files
openide/platform/build-scripts/intellij.platform.buildScripts.iml
nik 444af5308c build scripts: take bootstrap version of JPS modules from Maven repository (IJI-99)
Build scripts depend on some code from IntelliJ project (they use JpsModel interfaces to introspect the project configuration, and use code from jps.build modules to compile Java and Groovy code). Before this change when build scripts were invoked from the IDE by running *.gant files they took required classes directly from module output directories, but when they were invoked via gant.xml (e.g. on TeamCity) use prebuilt bootstrap version of these modules from community/build/lib/jps/*.jar files. So if you added usage of a recently added class or method in a script, this will work when running scripts from IDE but fail on TeamCity. Also updating a library used directly or indirectly by build scripts may cause problems because the bootstrap version of JPS JARs may become incompatible with it. And in order to update the bootstrap version of JPS JARs it was needed to build the new JARs and put them to Git.

Now dependencies of build scripts are specified in a special intellij.tools.jps.buildScriptDependencies module which is uploaded as a Maven artifact to https://bintray.com/jetbrains/intellij-third-party-dependencies/intellij-modules-preview and added as a Maven library 'jps-build-script-dependencies-bootstrap', so the same version of dependencies is used when running build scripts from IDE and on TeamCity.

GitOrigin-RevId: 232561ddc3135e97c238c8d4850fbbc2f1a8ab10
2019-08-15 12:03:42 +03:00

27 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/testSrc" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/groovy" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="Ant" level="project" />
<orderEntry type="library" scope="TEST" name="JUnit4" level="project" />
<orderEntry type="library" exported="" name="jps-build-script-dependencies-bootstrap" level="project" />
<orderEntry type="module-library" exported="" scope="PROVIDED">
<library name="commons-cli" type="repository">
<properties maven-id="commons-cli:commons-cli:1.2" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-cli/commons-cli/1.2/commons-cli-1.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-cli/commons-cli/1.2/commons-cli-1.2-sources.jar!/" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>