Revert back to 1.7.15 as the default
Revert back to 1.7.15 as the default

See <https://github.com/jruby/jruby/issues/2032>

package com.github.jrubygradle

import org.gradle.api.Incubating
import org.gradle.api.Project

class JRubyPluginExtension {
    /** The default version of jruby that will be used by jrubyWar
     *
     */
    String defaultVersion = '1.7.15'

    /** Directory for jrubyPrepare to install .gem dependencies into
     *
     */
    String gemInstallDir

    /** The version of jruby used by jrubyexec as well as default version of jruby that will be used by JRubyExec
     *
     */
    String execVersion = defaultVersion

    /** Setting the warbler bootstrap version that can be used for dependencies
     * By default it will use any version 0.1.x or better. Setting this property
     * allows for locking down the build to one specific version.
     *
     * @since 0.1.2
     */
    @Incubating
    String warblerBootstrapVersion = '0.1.+'

    /** Set this to false if you do not want the default set of repositories to be loaded.
     *
     * @since 0.1.1
     */
    @Incubating
    boolean defaultRepositories = true

    JRubyPluginExtension(Project p) {
        project = p
        gemInstallDir = new File(p.buildDir,'vendor').absolutePath
    }

    /** Change the version of jruby for jrubyexec and JRubyExec
     *
     * @param newVersion
     */
    void setExecVersion(final String newVersion) {
        execVersion = newVersion

        project.tasks.withType(JRubyExec).each { t ->
            t.jrubyVersion = newVersion
        }
    }

    private Project project
}

package com.github.jrubygradle

import org.gradle.api.Incubating
import org.gradle.api.Project

class JRubyPluginExtension {
    /** The default version of jruby that will be used by jrubyWar
     *
     */
    String defaultVersion = '1.7.16'

    /** Directory for jrubyPrepare to install .gem dependencies into
     *
     */
    String gemInstallDir

    /** The version of jruby used by jrubyexec as well as default version of jruby that will be used by JRubyExec
     *
     */
    String execVersion = defaultVersion

    /** Setting the warbler bootstrap version that can be used for dependencies
     * By default it will use any version 0.1.x or better. Setting this property
     * allows for locking down the build to one specific version.
     *
     * @since 0.1.2
     */
    @Incubating
    String warblerBootstrapVersion = '0.1.+'

    /** Set this to false if you do not want the default set of repositories to be loaded.
     *
     * @since 0.1.1
     */
    @Incubating
    boolean defaultRepositories = true

    JRubyPluginExtension(Project p) {
        project = p
        gemInstallDir = new File(p.buildDir,'vendor').absolutePath
    }

    /** Change the version of jruby for jrubyexec and JRubyExec
     *
     * @param newVersion
     */
    void setExecVersion(final String newVersion) {
        execVersion = newVersion

        project.tasks.withType(JRubyExec).each { t ->
            t.jrubyVersion = newVersion
        }
    }

    private Project project
}
