You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "bhashit parikh (JIRA)" <ji...@apache.org> on 2014/05/23 18:24:02 UTC

[jira] [Commented] (BIGTOP-1269) BigPetStore: Create build w/ gradle

    [ https://issues.apache.org/jira/browse/BIGTOP-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007314#comment-14007314 ] 

bhashit parikh commented on BIGTOP-1269:
----------------------------------------

I have pretty much completed porting the {{pom.xml}} based build to a {{gradle}} based build system. On the way, I have made a few chanages (some gradelization, and some refactoring). Here's a list
# Added support for {{scala}}.
# Added support for {{[scalatest|http://www.scalatest.org/]}} library. Which allows us to write tests using a really cool syntax. We can test both scala and java code using it.
# Changed the {{java}} version to 1.7. I wanted to change to 1.8, but {{gradle}} throws tantrums when we combine the {{scala}} plugin with {{java 8}}. We'll need to wait for {{gradle 2}} before upgrading to 1.8.
# The {{.classpath}} file no longer needs to be modified by hand.
# Integration tests for each profile are now in their own tasks. So, instead of saying something like 
{{gradle integrationTest -Pprofile=pig}}, 
we now just say 
{{gradle integrationTestPig}}
# I have added a {{-Xlint:all}} flag to the compiler. It warns when we stray from best practices. I refactored the integration-test classes to get rid of all the warnings. A few more classes still have those warnings. I'll take care of them afterwards.
# Refactored to change the way the test-classes are included or excluded for each profile.
# Modified the {{README.md}} to reflect the changes in the build commands.

That's pretty much it. We are down from about 800 lines to like 160 lines or so. And, as with all software related things, there will always be a room for further improvement.


> BigPetStore: Create build w/ gradle
> -----------------------------------
>
>                 Key: BIGTOP-1269
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1269
>             Project: Bigtop
>          Issue Type: Improvement
>          Components: Blueprints
>    Affects Versions: backlog
>            Reporter: jay vyas
>
> Lets port the BigPetStore build to gradle for all the obvious reasons.  This port might cause some minor breakage of other parallel efforts that change the pom file.
> The gradle ported build should contain: 
> - a "test" phase which runs the custom data set generator
> - a "integration test - pig" phase which runs the pig data cleaner + aggrergator. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)