unsaved / gradle-ivyxml-plugin

Gradle plugin that loads dependencies according to Ivy dependency files
13 stars 7 forks source link

Deprecation warning #7

Open tomwestin opened 10 years ago

tomwestin commented 10 years ago

Since upgrading to Gradle 1.6 i get the following warning:

"The ConfigurationContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead."

It should be a simple fix.

unsaved commented 10 years ago

Thanks Tom. Adding to my todo list.

unsaved commented 10 years ago

As usual, the simple instructions didn't work. But after some attempts I have it running quietly now.

Please test it for me by building the jar from trunk and using that (jar will get created at .../build/libs/gradle-ivyxml-plugin-0.3.3-SNAPSHOT.jar). If you confirm that it works for you, then I'll cut a new release.

tomwestin commented 10 years ago

I have built a new jar from trunk and and i have confirmed that this deprecation warning is gone now. :)

BTW. What is the easiest way to include this locally built plugin jar as a dependency in your build script? I had to upload it to a Nexus repo server but there must be some simpler way?

unsaved commented 10 years ago

Thanks very much, Tom.

I think that you probably have a "buildscript" block in your build.gradle, though there could be other ways to accomplish the same thing. Add the line "repositories { flatDir { dirs '/tmp/overrides' } }" inside the "buildscript" block, before your other repositories, of course replacing "/tmp/overrides" with the path to your own directory containing local jars.

On 12/02/2013 08:23 AM, Thomas Westin wrote:

I have built a new jar from trunk and and i have confirmed that this deprecation warning is gone now. :)

BTW. What is the easiest way to include this locally built plugin jar as a dependency in your build script? I had to upload it to a Nexus repo server but there must be some simpler way?

— Reply to this email directly or view it on GitHub https://github.com/unsaved/gradle-ivyxml-plugin/issues/7#issuecomment-29616922.

http://admc.com/ Main:304-724-1433 Cell:304-839-6474

tomwestin commented 10 years ago

I tried that method and it works too. Thank you. :)

unsaved commented 10 years ago

I just released it as version 0.3.3. I haven't done a release lately, but it used to take about a day to get onto Maven Central.

I need to increment that version to 1.x next time.

On 12/02/2013 09:46 AM, Thomas Westin wrote:

I tried that method and it works too. Thank you. :)

— Reply to this email directly or view it on GitHub https://github.com/unsaved/gradle-ivyxml-plugin/issues/7#issuecomment-29622676.

http://admc.com/ Main:304-724-1433 Cell:304-839-6474

tomwestin commented 10 years ago

Great. I will use and test this new release when it's available.

unsaved commented 10 years ago

It's available now. Only took a few hours before it was on Maven Central.

On Thu, Dec 5, 2013 at 9:21 AM, Thomas Westin notifications@github.comwrote:

Great. I will use and test this new release when it's available.

— Reply to this email directly or view it on GitHubhttps://github.com/unsaved/gradle-ivyxml-plugin/issues/7#issuecomment-29900838 .