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