You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2015/03/05 01:50:38 UTC

[jira] [Comment Edited] (BIGTOP-1494) Introduce Groovy DSL to replace bigtop.mk in Gradle build

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

Konstantin Boudnik edited comment on BIGTOP-1494 at 3/5/15 12:50 AM:
---------------------------------------------------------------------

How about something like this
{code}
bigtop {
  stack: [version: "0.9.0, jdk: "1.7.0", scala: "2.10.3", groovy:  "2.4.0"]
  components [
      component {
        name      project: "bigtop-groovy", pgk; "bigtop-groovy", relNotes; "Grovvy: a dynamic language for the Java platform"
        tarball   destination: "bigtop-groovy-2.3.8.tar.gz", source: "groovy-binary-2.3.8.zip"
        url       site: "http://dl.bintray.com/groovy/maven/", archive: "http://dl.bintray.com/groovy/maven/"
        version   base: "2.3.8", pkg: "2.3.8", release: "1"
        // Optional, as only null values are specified
        git       repo: null, ref: null, dir: null
      }
    component {
      ...
    }
    ...
  ]
}
{code}

The code serving this DSL will be pretty straight forward. As an added benefit we can have variety of the stack representations, e.g. JSON, plain text, HTML for the web, etc.

Thoughts?


was (Author: cos):
How about something like this
{code}
bigtop {
  stack: [version: "0.9.0, jdk: "1.7.0", scala: "2.10.3", groovy:  "2.4.0"]
  components [
      component {
        name      project: "bigtop-groovy", pgk; "bigtop-groovy", relNotes; "Grovvy: a dynamic language for the Java platform"
        tarball   destination "bigtop-groovy-2.3.8.tar.gz", source; "groovy-binary-2.3.8.zip"
        url       site: "http://dl.bintray.com/groovy/maven/", archive: "http://dl.bintray.com/groovy/maven/"
        version   base: "2.3.8", pkg: "2.3.8", release: "1"
        // Optional, as only null values are specified
        git       repo: null, ref: null, dir: null
      }
    component {
      ...
    }
    ...
  ]
}
{code}

The code serving this DSL will be pretty straight forward. As an added benefit we can have variety of the stack representations, e.g. JSON, plain text, HTML for the web, etc.

Thoughts?

> Introduce Groovy DSL to replace bigtop.mk in Gradle build 
> ----------------------------------------------------------
>
>                 Key: BIGTOP-1494
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1494
>             Project: Bigtop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.8.0
>            Reporter: jay vyas
>            Assignee: Konstantin Boudnik
>             Fix For: 0.9.0
>
>
>  Seems confusing to have a {{.mk}} file which is mostly just a bunch of variable declarations, which is then parsed as a CSV, simply for the sake of guiding the {{packages.gradle}} file .  
> Can we be more idiomatic to gradle and either eliminate {{bigtop.mk}} by making it into a native gradle data structure (its really just an array,  and we can  declare in gradle.settings) , so that the {{readBOM}} function is easier to follow ?
> I think it is an entry point to understanding bigtop's build system so we should try to simplify it as much as possible to make it maximally easy for people to understand how bigtop's gradle packaging system works.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)