Skip to content

Commit

Permalink
Merge branch 'fork'
Browse files Browse the repository at this point in the history
* fork: (40 commits)
  Upgrade Grails version to 3.0.1
  Update grails version to 3.0.0.RC3
  update version to 2.0.0.RC1
  skip updating when the process is started from migration commands
  back to snapshot
  remove unnecessary repository settings
  update README
  update version to 2.0.0.M1
  update travis settings
  add test for GroovyChange
  add integration tests
  upgrade grails to 3.0.0.RC1
  fix failing test
  add tests for Groovy Preconditions
  update travis status badge
  update bintray account
  cleanup
  update travis settings
  add bintray settings
  remove unused log annotation
  ...
  • Loading branch information
bobbywarner committed Sep 29, 2015
2 parents 11a95dc + 13c5191 commit 7545700
Show file tree
Hide file tree
Showing 251 changed files with 6,894 additions and 11,808 deletions.
26 changes: 6 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
*.swp
web-app
*.iws
*Db.properties
*Db.script
/bin/
/build/
/.gradle/
.project
.settings
stacktrace.log
/*.zip
/*.zip.sha1
/plugin.xml
/*.log
/*DB.*
/cobertura.ser
.DS_Store
/target/
/out/
/web-app/plugins
/web-app/WEB-INF/classes
/.link_to_grails_plugins/
/target-eclipse/
.classpath
.project
*.iml
/.idea/
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language: groovy
jdk:
- oraclejdk7
- openjdk7
before_script:
- rm -rf target
- rm -rf build
script: ./travis-build.sh
env:
global:
- GIT_NAME="Graeme Rocher"
- GIT_EMAIL="graeme.rocher@gmail.com"
- secure: rJ9dcWHllb8KkZNMW+71E/cjHwdQldAyLQN12GSL/YKGYvK7tb1Tyj/Poy3u08JyvKTbQg0Jh+eXRytppRXod1qjlsT0em+5PQAgEt/ihgtSkQPNacJUlAf3iELlTCiSqOdSy35zW6kf7U00lcM/k7NA0BnlRTT4A4/3do7mDGA=
- secure: lKOkxxJVUTyDcq7WkP/6IXEdsFlLdefD044mc/GZm81PIW2qJ2EOsifcyKjXkymwSlw4f/9eChY22Z3W3ctLwcGy2YGyo0MZyzBTnlaTk8Z+KzUQK/disyzVa+0bq60tf/Dy21Sn539+jBrcRidik/j8HmH6As4cOndjPf0lcMk=
- secure: DDM8wpbwLozxU/wgS++lv+bJuI7qz5+mAtixBeOjluDElmnFwzilI/DEBTdVsc6OKJD0hBOHai3LAMwfaC0WW4DhxqGWS/4iTmPrOQY6VoHCRvEVO8s/YVIq++Ja0ehvV+YkLx/IbWQJ4d/FldN67Bg18jCcRap5zjnaZDsaOqI=
- GIT_NAME="Kazuki YAMAMOTO"
- GIT_EMAIL="yam.kazuki@gmail.com"
- secure: XsiOtsq2z6bQg7cD2xWcenGtMFtVkI84M1V7JLMwSH0ZV32YYl8LyL7TcieqhEj0/GPEXHgb4duatnxIFomOg1Jku6lP8wO06veLMOpXEZGF5dg+G1+SAqftQzLePsDmEPJW76o4jodWL3pkrTYpnrEn7KUX9olZrXX7lqcunf4=
- secure: MBJTKTMfBerHYKMeJBrL/R8FwK23BJXALrL477X1letpg2SUj0KN+UKahYqVOGtHRj/C1hbpU84qlovLfuCCbd8CJbtpWw85hnEjnQrDJdHAJs8/ByUhUllT7JxM/1/X/IdGMhxM/k7QulymFlte7HRTDoenHvSXYql5A5ns7YI=
140 changes: 0 additions & 140 deletions DatabaseMigrationGrailsPlugin.groovy

This file was deleted.

38 changes: 34 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,40 @@ The current master branch is for 2.x versions of the plugin compatible with Grai

## Overview

The Database Migration plugin helps you manage database changes while developing Grails applications. The plugin uses the Liquibase library.
Using this plugin (and Liquibase in general) adds some structure and process to managing database changes. It will help avoid inconsistencies, communication issues, and other problems with ad-hoc approaches.

Database migrations are represented in text form, either using a Groovy DSL or native Liquibase XML, in one or more changelog files. This approach makes it natural to maintain the changelog files in source control and also works well with branches. Changelog files can include other changelog files, so often developers create hierarchical files organized with various schemes. One popular approach is to have a root changelog named changlog.groovy (or changelog.xml) and to include a changelog per feature/branch that includes multiple smaller changelogs. Once the feature is finished and merged into the main development tree/trunk the changelog files can either stay as they are or be merged into one large file. Use whatever approach makes sense for your applications, but keep in mind that there are many options available for changelog management.
The Database Migration plugin helps you manage database changes while developing Grails applications. The plugin uses the Liquibase library. Using this plugin (and Liquibase in general) adds some structure and process to managing database changes. It will help avoid inconsistencies, communication issues, and other problems with ad-hoc approaches.

Database migrations are represented in text form, either using a Groovy DSL or native Liquibase XML, in one or more changelog files. This approach makes it natural to maintain the changelog files in source control and also works well with branches. Changelog files can include other changelog files, so often developers create hierarchical files organized with various schemes.
One popular approach is to have a root changelog named changlog.groovy (or changelog.xml) and to include a changelog per feature/branch that includes multiple smaller changelogs. Once the feature is finished and merged into the main development tree/trunk the changelog files can either stay as they are or be merged into one large file. Use whatever approach makes sense for your applications, but keep in mind that there are many options available for changelog management.

## Installation

Add a dependency for the plugin in build.gradle:

```
buildscript {
...
dependencies {
classpath 'org.grails.plugins:database-migration:2.0.0.RC1'
}
}
dependencies {
...
runtime 'org.grails.plugins:database-migration:2.0.0.RC1'
}
```

And add a path of Changelog directory to `sourceSets` in build.gradle:

```
sourceSets {
main {
resources {
srcDir 'grails-app/migrations'
}
}
}
```

## Documentation

Expand Down
1 change: 0 additions & 1 deletion application.properties

This file was deleted.

100 changes: 100 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath 'com.bertramlabs.plugins:asset-pipeline-gradle:2.1.1'
}
}

plugins {
id "io.spring.dependency-management" version "0.3.1.RELEASE"
id "com.jfrog.bintray" version "1.1"
}

version "2.0.0.RC1"
group "org.grails.plugins"

apply plugin: "spring-boot"
apply plugin: "asset-pipeline"
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
// Used for publishing to central repository, remove if not needed
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'

ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}

sourceCompatibility = 1.7
targetCompatibility = 1.7

repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

dependencies {
compile 'org.liquibase:liquibase-core:3.3.2'
compile('org.liquibase.ext:liquibase-hibernate4:3.5') {
exclude group: 'org.hibernate', module: 'hibernate-core'
exclude group: 'org.hibernate.javax.persistence', module: 'hibernate-jpa-2.0-api'
exclude group: 'org.hibernate', module: 'hibernate-entitymanager'
exclude group: 'org.hibernate', module: 'hibernate-envers'
}
provided 'org.hibernate:hibernate-core:4.3.8.Final'

provided 'org.springframework.boot:spring-boot-starter-logging'
provided "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"

provided "org.grails:grails-web-boot"
provided "org.grails:grails-dependencies"
provided 'javax.servlet:javax.servlet-api:3.1.0'

testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:hibernate"

provided("org.grails:grails-shell") {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
}

eclipse {
classpath {
plusConfigurations += [configurations.provided]
}
}

idea {
module {
scopes.PROVIDED.plus += [configurations.provided]
}
}

bintray {
pkg {
userOrg = '' // If you want to publish to an organization
issueTrackerUrl = "https://github.com/yamkazu/$project.name/issues"
vcsUrl = "https://github.com/yamkazu/$project.name"
}
}
60 changes: 0 additions & 60 deletions build.xml

This file was deleted.

Loading

0 comments on commit 7545700

Please sign in to comment.