build scripts: provide common option to enable injection of URL of custom plugins repository to ApplicationInfo.xml

Replace 'intellij.build.prepare.plugin.repository' system property which is used in IDEA only by the common 'intellij.build.use.teamcity.as.plugins.repository' property so we can enable builtin plugin repository in nightly build of other IDEs as well. Also the new property enables only adding reference to TeamCity artifacts into the product, the custom repository xml file is always generated in TeamCity artifacts so it can be used manually even for public builds.
This commit is contained in:
nik
2019-04-03 09:30:56 +03:00
parent 0b9a2a8d1f
commit e853f28e94
3 changed files with 8 additions and 2 deletions
@@ -19,5 +19,9 @@ import groovy.transform.CompileStatic
@CompileStatic
interface ArtifactsServer {
/**
* Returns full URL which can be used to download an artifact.
* @param relativePath path to an artifact from {@link org.jetbrains.intellij.build.BuildPaths#artifacts} directory
*/
String urlToArtifact(String relativePath)
}
@@ -143,7 +143,9 @@ class ProductModulesLayout {
/**
* If {@code true} a special xml descriptor in custom plugin repository format will be generated for {@link #setPluginModulesToPublish} plugins.
* This descriptor and the plugin *.zip files need to be uploaded to the URL specified in 'plugins@builtin-url' attribute in *ApplicationInfo.xml file.
* This descriptor and the plugin *.zip files can be uploaded to the URL specified in 'plugins@builtin-url' attribute in *ApplicationInfo.xml file
* to allow installing custom plugins directly from IDE. If {@link ProprietaryBuildTools#artifactsServer} is specified, {@code __BUILTIN_PLUGINS_URL__} in
* *ApplicationInfo.xml file will be automatically replaced by the plugin repository URL provided by the artifact server.
*
* @see #setPluginModulesToPublish
* @see #setPluginPublishingSpec
@@ -45,7 +45,7 @@ class ProprietaryBuildTools {
MacHostProperties macHostProperties
/**
* Describes a server that can be used to download built artifacts
* Describes a server that can be used to download built artifacts to install plugins into IDE
*/
ArtifactsServer artifactsServer
}