[
https://issues.apache.org/jira/browse/THRIFT-4259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16324891#comment-16324891
]
Alexander Volanis commented on THRIFT-4259:
-------------------------------------------
I am going to attempt converting the Java library project to build using
Gradle. I notice that the android library in lib/java/android is already using
Gradle and that makes it a possible option in my opinion.
After reading through the Ant build.xml which uses Maven under the covers to
perform many of the tasks I have a pretty good understanding of the build
process and how it should behave. If all goes well I can have something to
review in a relatively short time.
Gradle offers an option to be downloaded just in time using the Gradle Wrapper
and that would help normalize the build environment for all supported platforms
including Windows to a common base version of Gradle instead of relying on
package managers to pull whatever backported version they happen to have in the
distribution repositories. I can certainly use a lowest common denominator
approach since Gradle scripting is backwards compatible through several major
releases but the recommended way to make this work is to always use the Gradle
Wrapper.
> Thrift does not compile due to Ant Maven task errors
> ----------------------------------------------------
>
> Key: THRIFT-4259
> URL: https://issues.apache.org/jira/browse/THRIFT-4259
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler
> Affects Versions: 0.9.3, 0.10.0, 0.11.0
> Environment: Fedora 25, Linux, any project docker image (all use ant
> 1.9.x)
> Reporter: Jacek Furmankiewicz
> Priority: Blocker
>
> Cannot compile neither 0.9.3 nor 0.10.0
> They both fail with same errors in the Ant / Maven task....
> -----------------------------------------------------------------------------
> ./configure --without-ruby --without-cpp --without-nodejs --without-python
> --without-go --without-c_glib
> /usr/bin/ant
> Buildfile: /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build.xml
> setup.init:
> mvn.ant.tasks.check:
> proxy:
> mvn.ant.tasks.download:
> [get] Getting:
> http://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar
> [get] To:
> /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build/tools/maven-ant-tasks-2.1.3.jar
> [get] Not modified - so not downloaded
> mvn.init:
> BUILD FAILED
> /home/jfurmank/Downloads/thrift-0.10.0/lib/java/build.xml:324:
> java.lang.NoSuchMethodError:
> org.apache.maven.settings.RuntimeInfo.<init>(Lorg/apache/maven/settings/Settings;)V
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.loadSettings(AbstractArtifactTask.java:328)
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.initSettings(AbstractArtifactTask.java:278)
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.getSettings(AbstractArtifactTask.java:223)
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.getDefaultLocalRepository(AbstractArtifactTask.java:212)
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.getLocalRepository(AbstractArtifactTask.java:700)
> at
> org.apache.maven.artifact.ant.AbstractArtifactTask.createLocalArtifactRepository(AbstractArtifactTask.java:110)
> at org.apache.maven.artifact.ant.Pom.getMavenProject(Pom.java:272)
> at org.apache.maven.artifact.ant.Pom.setGroupId(Pom.java:560)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(IntrospectionHelper.java:1506)
> at
> org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:411)
> at
> org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:527)
> at
> org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:463)
> at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
> at
> org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:200)
> at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:164)
> at org.apache.tools.ant.Task.perform(Task.java:347)
> at org.apache.tools.ant.Target.execute(Target.java:435)
> at org.apache.tools.ant.Target.performTasks(Target.java:456)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> at org.apache.tools.ant.Main.runBuild(Main.java:853)
> at org.apache.tools.ant.Main.startAnt(Main.java:235)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
> Total time: 0 seconds
> Totally blocked, cannot install Thrift on my box, critical for our
> development.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)