Skip to content

Commit

Permalink
Maven Central requires HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
twogee committed Feb 7, 2020
1 parent 1900ca8 commit ae909c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
<format pattern="2004-yyyy" property="years"/>
</tstamp>

<property name="central.repo" value="https://repo1.maven.org/maven2"/>
<property name="ivy.version" value="2.5.0"/>
<property name="ivy.dir" value="${user.home}/.ivy2/cache/org.apache.ivy/jars"/>
<property name="ivy.jar.name" value="ivy-${ivy.version}.jar"/>
<available property="has.ivy" file="${ivy.dir}/${ivy.jar.name}" type="file"/>

<target name="get-ivy" description="Get Ivy jar unless already cached" unless="has.ivy">
<mkdir dir="${ivy.dir}"/>
<get usetimestamp="true" src="https://repository.apache.org/content/repositories/releases/org/apache/ivy/ivy/${ivy.version}/${ivy.jar.name}"
<get usetimestamp="true" src="${central.repo}/org/apache/ivy/ivy/${ivy.version}/${ivy.jar.name}"
skipexisting="true"
dest="${ivy.dir}/${ivy.jar.name}"/>
</target>
Expand Down
2 changes: 1 addition & 1 deletion ivy.settings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ivysettings>
<property name="eclipse.updatesite" value="http://download.eclipse.org/eclipse/updates/4.12/"/>
<property name="gef.legacy.updatesite" value="http://download.eclipse.org/tools/gef/updates/legacy/releases/"/>
<property name="central.repo" value="http://repo1.maven.org/maven2" override="false"/>
<property name="central.repo" value="https://repo1.maven.org/maven2" override="false"/>
<settings defaultResolver="default"/>
<caches defaultCacheDir="${user.home}/.ivy2/cache"
artifactPattern="[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"/>
Expand Down

0 comments on commit ae909c5

Please sign in to comment.