# Gradle's ant dependency needs to be updated to work with Java 8. Ant will report "Invalid Constant Pool entry Type 18" at some times

**URL:** <https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703>\
**Category:** Old Forum Archive\
**Created:** [July 10, 2013, 3:41pm UTC](https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703 "2013-07-10T15:41:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bair](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bair/32/194_2.png) [@Bair](https://discuss.gradle.org/u/Bair)\
**Post date:** [July 10, 2013, 3:41pm UTC](https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703/1 "2013-07-10T15:41:00Z")

</div>

Hi guys,

We are using Gradle 1.4 and running into this issue: [https://issues.apache.org/bugzilla/show\_bug.cgi?id=54090](https://issues.apache.org/bugzilla/show_bug.cgi?id=54090). This was fixed in Ant 1.9.0 ([https://svn.apache.org/repos/asf/ant/core/trunk/WHATSNEW](https://svn.apache.org/repos/asf/ant/core/trunk/WHATSNEW)). The current ant version is 1.9.1. Before shipping 1.7, can you update the version of ant in use? Because we’re using Gradle on 1.8 projects, we’re running into this issue (and because we also use the “depend” feature). If this goes into 1.7 we will upgrade our build systems to use 1.7.

Thanks Richard

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [July 10, 2013, 4:43pm UTC](https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703/2 "2013-07-10T16:43:00Z")

</div>

Thanks for letting us know. We can’t update the Ant version for Gradle 1.7 (which is already in RC phase), but possibly for 1.8.

---

<div class="post-metadata">

**Author:** ![Bair](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bair/32/194_2.png) [@Bair](https://discuss.gradle.org/u/Bair)\
**Post date:** [July 10, 2013, 5:53pm UTC](https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703/3 "2013-07-10T17:53:00Z")

</div>

When is 1.8 expected?

---

<div class="post-metadata">

**Author:** ![Peter\_Niederwieser](https://avatars.discourse-cdn.com/v4/letter/p/9f8e36/32.png) [@Peter\_Niederwieser](https://discuss.gradle.org/u/Peter_Niederwieser)\
**Post date:** [July 10, 2013, 5:55pm UTC](https://discuss.gradle.org/t/gradles-ant-dependency-needs-to-be-updated-to-work-with-java-8-ant-will-report-invalid-constant-pool-entry-type-18-at-some-times/1703/4 "2013-07-10T17:55:00Z")

</div>

Our release cycle is approximately 8 weeks. Or you can choose to use a nightly build.
