forked from Kotlin/anko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_dependencies.xml
60 lines (43 loc) · 2.65 KB
/
update_dependencies.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<project name="Update Dependencies" default="update">
<property name="constraint.layout.version" value="1.1.2" />
<target name="update">
<mkdir dir="dependencies/download"/>
<get src="http://repo1.maven.org/maven2/org/ow2/asm/asm-debug-all/4.2/asm-debug-all-4.2.jar"
dest="dependencies/asm-4.2.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=junit/junit/4.11/junit-4.11.jar"
dest="dependencies/junit-4.11.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar"
dest="dependencies/hamcrest-all-1.3.jar" usetimestamp="true"/>
<get src="http://search.maven.org/remotecontent?filepath=org/json/json/20080701/json-20080701.jar"
dest="dependencies/json-20080701.jar" usetimestamp="true"/>
<get src="http://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar"
dest="dependencies/ant-contrib.jar" usetimestamp="true"/>
<get src="https://dl.google.com/dl/android/maven2/com/android/support/constraint/constraint-layout/${constraint.layout.version}/constraint-layout-${constraint.layout.version}.aar"
dest="dependencies/download/constraint-layout-${constraint.layout.version}.aar" usetimestamp="true"/>
<copy file="dependencies/download/constraint-layout-${constraint.layout.version}.aar"
tofile="dependencies/constraint-layout.aar" />
<ant antfile="update_dependencies_idea.xml" target="update"/>
<!-- Uncomment this to build against custom version of Kotlin plugin instead of bundled into AS -->
<!--
<get src="http://download.plugins.jetbrains.com/6954/38245/kotlin-plugin-1.1.4-release-Studio3.0-3.zip"
dest="dependencies/kotlin-plugin.zip" usetimestamp="true"/>
<delete dir="dependencies/kotlin-plugin" failonerror="false"/>
<unzip src="dependencies/kotlin-plugin.zip"
dest="dependencies/"/>
<set_unix_perms />
<copydir src="dependencies/Kotlin" dest="ideaSDK/plugins/Kotlin" forceoverwrite="true"/>
-->
</target>
<macrodef name="set_unix_perms">
<sequential>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="dependencies/ant-contrib.jar"/>
<if>
<equals arg1="${os.tag}" arg2="win.zip"/>
<then />
<else>
<chmod dir="dependencies/Kotlin/kotlinc/bin" perm="+x" includes="**/*"/>
</else>
</if>
</sequential>
</macrodef>
</project>