hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12257) rework build tool support; add gradle
Date Mon, 24 Aug 2015 21:33:45 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14710101#comment-14710101

Allen Wittenauer commented on HADOOP-12257:

This might help:

|| Phase || Maven || Ant || Gradle || autoconf ||
| precompile | mvn validate? | | rebuild gradlew, gradle -b bootstrap | ./configure; make
deps? |
| compile (see below) | mvn compile | ant jar/tar/whatever | gradle (module to compile) |
make (module) |
| postcompile | mvn install | | | |
| postbuild | mvn javadoc | ant javadoc | gradle (module):scaladoc | ? |

* The compile phase is a loop around multijdk. Sets javahome, then does whatever it needs
to do a build based upon the build tool.  After the build is finished, it calls javac, scalac,
etc, to look at its logs, take a look at the object files, etc. These methods no longer do
the builds themselves are only checking the state.  This removes a lot of extra compiles.
This should make it possible to to turn the loop into a matrix in the future.  java_home=x,y,z
scala_home=a,b,c  cc=1,2,3

* build tools now have plugins.  Many post-OO revolution build systems appear to do the work
of calling the compiler and massaging the output to its own tastes (mvn plugins, gradle plugins,
even cmake if you think about it.).  So the build systems have a lot more control and should
know how things should be output.  So some systems like javac allow for the build tool to
override its generic warning counters.

> rework build tool support; add gradle
> -------------------------------------
>                 Key: HADOOP-12257
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12257
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: yetus
>    Affects Versions: HADOOP-12111
>            Reporter: Allen Wittenauer
>            Assignee: Allen Wittenauer
>         Attachments: HADOOP-12257.HADOOP-12111.00.patch
> We need to rework build tool support to be pluggable as well as add gradle support so
that we cover more of the ecosystem.

This message was sent by Atlassian JIRA

View raw message