Gradle Plugins

Maintained by aalmiray

Summary

This plugin provides the capability of running and populating an embedded H2 database as part of a gradle build, perfect for integration testing with embedded web containers.

Website https://github.com/jamescarr/h2-gradle-plugin
Author jamescarr
Version 0.8.2

Usage

buildscript {
    repositories {
        add(new org.apache.ivy.plugins.resolver.URLResolver()) {
            name = 'GitHub'
            addArtifactPattern 'http://cloud.github.com/downloads/[organisation]/[module]/[module]-[revision].[ext]'
        }
        jcenter()
    }

    dependencies {
        classpath 'jamescarr:h2-gradle-plugin:0.8.2'
        classpath 'com.h2database:h2:1.3.164'  // choose your own version
    }
}
apply plugin: 'h2'