ksoichiro / gradle-eclipse-aar-plugin

Gradle plugin to use Android AAR libraries on Eclipse.
Apache License 2.0
126 stars 27 forks source link

dependency version with letters in it #3

Closed gandulf closed 9 years ago

gandulf commented 9 years ago

Hi, I just replaced some of my local jars, with the proper gradle dependencies and stumbled over another problems:

One of my jars must have a dependency with an library whose version has rc (release candidate) in it's version. Then I get the following exception from your plugin:

Caused by: java.lang.NumberFormatException: For input string: "rc"
    at com.github.ksoichiro.eclipse.aar.GenerateTask$__clinit__closure1.doCall(GenerateTask.groovy:22)
    at com.github.ksoichiro.eclipse.aar.GenerateTask$_getLatestDependencies_closure12_closure54.doCall(GenerateTask.groovy:192)
    at com.github.ksoichiro.eclipse.aar.GenerateTask$_getLatestDependencies_closure12.doCall(GenerateTask.groovy:191)
    at com.github.ksoichiro.eclipse.aar.GenerateTask.getLatestDependencies(GenerateTask.groovy:185)
    at com.github.ksoichiro.eclipse.aar.GenerateTask$_exec_closure4.doCall(GenerateTask.groovy:114)
    at com.github.ksoichiro.eclipse.aar.GenerateTask.exec(GenerateTask.groovy:113)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
    at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

by the way great work. keep it up :-)

gandulf commented 9 years ago

I found out with dependency was messing up the plugin:

it seems google itself has some weird versions:

ksoichiro commented 9 years ago

Thanks for reporting! I'll fix it soon.

ksoichiro commented 9 years ago

I've fixed it. Could you please try again?

gandulf commented 9 years ago

No error is thrown an the dependencies are added. So looks fine.

ksoichiro commented 9 years ago

Thanks for checking!