|
67 | 67 | idea.maven.version="${ideaVersion}"/>
|
68 | 68 | </target>
|
69 | 69 |
|
| 70 | + <target name="get-ivy-library"> |
| 71 | + <get-maven-library prefix="org/apache/ivy" lib="ivy" version="2.4.0" target.jar.name.base="ivy" server="https://repo1.maven.org/maven2"/> |
| 72 | + </target> |
| 73 | + |
70 | 74 | <macrodef name="get-maven-library">
|
71 | 75 | <attribute name="prefix"/>
|
72 | 76 | <attribute name="lib"/>
|
|
93 | 97 | </sequential>
|
94 | 98 | </macrodef>
|
95 | 99 |
|
| 100 | + <!-- |
| 101 | + This doesn't download sources, see https://issues.apache.org/jira/browse/IVY-1003. |
| 102 | + Please download sources manually if you need them. |
| 103 | + --> |
| 104 | + <macrodef name="get-maven-library-with-dependencies"> |
| 105 | + <attribute name="group"/> |
| 106 | + <attribute name="artifact"/> |
| 107 | + <attribute name="version"/> |
| 108 | + <attribute name="target.dir" default="maven"/> |
| 109 | + |
| 110 | + <sequential> |
| 111 | + <mkdir dir="${dependencies}/@{target.dir}"/> |
| 112 | + |
| 113 | + <java classname="org.apache.ivy.Main"> |
| 114 | + <arg value="-dependency"/> |
| 115 | + <arg value="@{group}"/> |
| 116 | + <arg value="@{artifact}"/> |
| 117 | + <arg value="@{version}"/> |
| 118 | + <arg value="-retrieve"/> |
| 119 | + <arg value="${dependencies}/@{target.dir}/[artifact]-[revision](-[classifier]).[ext]"/> |
| 120 | + |
| 121 | + <classpath> |
| 122 | + <pathelement location="${dependencies}/ivy.jar"/> |
| 123 | + </classpath> |
| 124 | + </java> |
| 125 | + </sequential> |
| 126 | + </macrodef> |
| 127 | + |
96 | 128 | <macrodef name="get-ant-library">
|
97 | 129 | <attribute name="version"/>
|
98 | 130 | <attribute name="folderName"/>
|
|
154 | 186 | </jar>
|
155 | 187 | </target>
|
156 | 188 |
|
157 |
| - <target name="fetch-third-party" depends="make-dependency-dirs, make-native-platform-uberjar"> |
| 189 | + <target name="fetch-third-party" depends="get-ivy-library, make-dependency-dirs, make-native-platform-uberjar"> |
158 | 190 | <antcall target="override-version"/>
|
159 | 191 |
|
160 | 192 | <!-- ProGuard -->
|
|
219 | 251 | <get-maven-library prefix="org/jetbrains/uast" lib="uast-java" version="${uast.version}" target.jar.name.base="uast-java" server="${uast.server}"/>
|
220 | 252 | <get-maven-library prefix="org/jetbrains/uast" lib="uast-tests" version="${uast.version}" target.jar.name.base="uast-tests" server="${uast.server}"/>
|
221 | 253 |
|
| 254 | + <get-maven-library-with-dependencies |
| 255 | + group="org.robolectric" |
| 256 | + artifact="robolectric" |
| 257 | + version="3.3.2" |
| 258 | + target.dir="robolectric"/> |
222 | 259 |
|
223 | 260 | <!-- kotlinx.coroutines -->
|
224 | 261 | <get-maven-library prefix="org/jetbrains/kotlinx" lib="kotlinx-coroutines-core" version="${kotlinx.coroutines.version}"
|
|
0 commit comments