Path: blob/wip/rebase_3.3.3/update-dependencies.xml
2570 views
<!--1~ Copyright LWJGL. All rights reserved.2~ License terms: https://www.lwjgl.org/license3-->45<!-- Downloads LWJGL's library dependencies. -->6<project name="LWJGL" basedir="." default="update-dependencies" xmlns:if="ant:if" xmlns:unless="ant:unless">78<property name="config" location="config" relative="true"/>9<import file="${config}/build-definitions.xml" id="defs"/>1011<!-- *********************************** -->12<property name="jsr305" value="3.0.2"/>13<property name="testng" value="7.5"/>14<property name="jcommander" value="1.78"/>15<property name="jquery" value="3.5.1"/>16<property name="slf4j" value="1.7.36"/>17<property name="joml" value="1.10.5"/>18<property name="kotlinc-version" value="1.9.0"/>19<property name="kotlinc-build" value="1.9.0-release-358"/>20<property name="jmh-core" value="1.37"/>21<property name="jmh-generator-annprocess" value="1.37"/>22<property name="jopt-simple" value="5.0.4"/>23<property name="commons-math3" value="3.6.1"/>24<!-- *********************************** -->2526<target name="check-dependencies" description="Updates LWJGL dependencies, if required" unless="${build.offline}">27<!-- Checks if the Kotlin compiler must be updated -->28<local name="kotlinc-build-current"/>29<loadfile property="kotlinc-build-current" srcfile="${kotlinc}/build.txt" quiet="true" taskname="kotlinc"/>30<condition property="kotlinc-uptodate">31<and>32<isset property="kotlinc-build-current"/>33<equals arg1="${kotlinc-build-current}" arg2="${kotlinc-build}"/>34</and>35</condition>3637<uptodate property="lib-uptodate" srcfile="update-dependencies.xml" targetfile="${lib}/touch.txt"/>3839<local name="dependencies-uptodate"/>40<condition property="dependencies-uptodate">41<and>42<isset property="kotlinc-uptodate"/>43<isset property="lib-uptodate"/>44</and>45</condition>4647<antcall target="update-dependencies" unless:set="dependencies-uptodate"/>48</target>4950<target name="update-dependencies" description="Updates LWJGL dependencies" unless="${build.offline}">51<taskdef name="logLevel" classname="org.lwjgl.SetLogLevel" classpath="${bin.ant}"/>5253<mkdir dir="${lib}"/>54<mkdir dir="${lib}/java"/>55<antcall target="-lib-download"/>56<antcall target="-kotlinc-download"/>57</target>5859<!-- Downloads and extracts the Kotlin compiler. -->60<target name="-kotlinc-download" unless="kotlinc-uptodate">61<local name="kotlinc-archive"/>62<property name="kotlinc-archive" value="kotlin-compiler-${kotlinc-version}.zip"/>6364<!-- Download new build -->65<get taskname="kotlinc" src="https://github.com/JetBrains/kotlin/releases/download/v${kotlinc-version}/${kotlinc-archive}" dest="${lib}" verbose="true"/>6667<!-- Delete current build -->68<delete dir="${kotlinc}" taskname="kotlinc"/>69<!-- Extract build -->70<unzip src="${lib}/${kotlinc-archive}" dest="${lib}" taskname="kotlinc"/>71<!-- Delete build archive -->72<delete file="${lib}/${kotlinc-archive}" taskname="kotlinc"/>7374<echo message="The Kotlin compiler was updated to build: ${kotlinc-version}" taskname="kotlinc"/>75</target>7677<!-- Downloads the Java dependencies. -->78<target name="-lib-download" unless="lib-uptodate">79<update-mvn name="jsr305" group="com/google/code/findbugs" artifact="jsr305" version="${jsr305}"/>80<update-mvn name="TestNG" group="org/testng" artifact="testng" version="${testng}"/>81<update-mvn name="JCommander" group="com/beust" artifact="jcommander" version="${jcommander}" sources="false"/>82<update-mvn name="WebJars - jquery" group="org/webjars" artifact="jquery" version="${jquery}" sources="false"/>83<update-mvn name="SLF4J API" group="org/slf4j" artifact="slf4j-api" version="${slf4j}" sources="false"/>84<update-mvn name="SLF4J JDK14" group="org/slf4j" artifact="slf4j-jdk14" version="${slf4j}" sources="false"/>85<update-mvn name="JOML" group="org/joml" artifact="joml" version="${joml}"/>86<update-mvn name="JMH Core" group="org/openjdk/jmh" artifact="jmh-core" version="${jmh-core}"/>87<update-mvn name="JMH Generators: Annotation Processing" group="org/openjdk/jmh" artifact="jmh-generator-annprocess" version="${jmh-generator-annprocess}" sources="false"/>88<update-mvn name="JOpt Simple" group="net/sf/jopt-simple" artifact="jopt-simple" version="${jopt-simple}" sources="false"/>89<update-mvn name="Apache Commons Math" group="org/apache/commons" artifact="commons-math3" version="${commons-math3}" sources="false"/>9091<touch file="${lib}/touch.txt" verbose="false"/>92</target>9394<target name="clean" description="Deletes LWJGL dependencies">95<delete taskname="kotlinc" dir="${lib}/kotlinc"/>96<delete taskname="Java dependencies" dir="${lib}/java"/>97</target>9899</project>100101102