Split manual.js into seperate JS files. Combine and minify JS with grunt-js plugin

Split manual.js into the following files:

    "${projectDir}/src/assets/js/googleAnalytics.js",
    "${projectDir}/src/assets/js/modernizr.js",
    "${projectDir}/src/assets/js/prism.js",
    "${projectDir}/src/assets/js/jquery.js",
    "${projectDir}/src/assets/js/anchorHighlight.js",
    "${projectDir}/src/assets/js/toggleImports.js"

minify.gradle build file contains 2 tasks: combineJs - to merge JS files into one all.js file, and minifyJs - to minify all.js into all.min.js file.

HTML files for manual as well as Javadoc API now have a reference to js/all.min.js file.

There are conflicts in jar versions between ratpack-manual and grunt-js.
With GradleBuild grunt-js tasks run with their own classpath.
If task is in gradle build then minifyJs task throws exception:

java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.limit

​​

On 29 December 2014 at 10:39, Luke Daley <notifications@github.com> wrote:

> In ratpack-manual/ratpack-manual.gradle
> <https://github.com/ratpack/ratpack/pull/534#discussion-diff-22306553>:
>
> > @@ -245,10 +245,16 @@ compass {
> >    quiet = true
> >  }
> >
> > +task buildJs(type: GradleBuild) {
>
> Why do we need this instead of just having the tasks be part of this build?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ratpack/ratpack/pull/534/files#r22306553>.
>