Replicate IDEA plugin versions only on TeamCity build
This commit is contained in:
-6
@@ -1,12 +1,6 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact name="KotlinAndroidExtensions">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/KotlinAndroidExtensions</output-path>
|
||||
<properties id="ant-preprocessing">
|
||||
<options enabled="true">
|
||||
<file>file://$PROJECT_DIR$/replicate_versions.xml</file>
|
||||
<target>replicateIdeaVersions</target>
|
||||
</options>
|
||||
</properties>
|
||||
<root id="root">
|
||||
<element id="directory" name="lib">
|
||||
<element id="archive" name="kotlin-android-extensions.jar">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<project name="Jet CI Steps" default="none">
|
||||
<import file="build.xml" optional="false"/>
|
||||
<import file="replicate_versions.xml" optional="false"/>
|
||||
|
||||
<property name="build.number" value="snapshot"/>
|
||||
<property name="jdk16.home" value="${java.home}"/>
|
||||
@@ -97,6 +98,8 @@
|
||||
target.file.bk="${compiler.version.java.bk}"
|
||||
target.file.versioned="${compiler.version.java.versioned}"
|
||||
test.string="public static final String VERSION = "@snapshot@";"/>
|
||||
|
||||
<replicateIdeaVersion target.file="${android-extensions.plugin.xml}" />
|
||||
</target>
|
||||
|
||||
<target name="revertTemplateFiles">
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<version>@snapshot@</version>
|
||||
<vendor url="http://www.jetbrains.com">JetBrains s.r.o.</vendor>
|
||||
|
||||
<!-- Run replicateIdeaVersions Ant task after changing the versions. -->
|
||||
<idea-version since-build="141.2" until-build="141.9999"/>
|
||||
|
||||
<depends optional="true" config-file="junit.xml">JUnit</depends>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<version>@snapshot@</version>
|
||||
<vendor url="http://www.jetbrains.com">JetBrains Inc.</vendor>
|
||||
|
||||
<idea-version since-build="141.2" until-build="141.9999"/>
|
||||
<!-- IDEA VERSION -->
|
||||
|
||||
<depends optional="false">org.jetbrains.kotlin</depends>
|
||||
<depends optional="false">org.jetbrains.android</depends>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<macrodef name="replicateIdeaVersion">
|
||||
<attribute name="target.file"/>
|
||||
<attribute name="idea-version-pattern" default="<idea-version since-build="[0-9.]+" until-build="[0-9.]+"/>"/>
|
||||
<attribute name="replace-pattern" default="<!-- IDEA VERSION -->"/>
|
||||
|
||||
<sequential>
|
||||
<loadfile srcfile="${plugin.xml}" property="main.plugin.version">
|
||||
@@ -34,11 +35,7 @@
|
||||
</condition>
|
||||
</fail>
|
||||
|
||||
<replaceregexp file="@{target.file}" byline="true" match="@{idea-version-pattern}" replace="${main.plugin.version}" />
|
||||
<replaceregexp file="@{target.file}" byline="true" match="@{replace-pattern}" replace="${main.plugin.version}" />
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<target name="replicateIdeaVersions">
|
||||
<replicateIdeaVersion target.file="${android-extensions.plugin.xml}" />
|
||||
</target>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user