forked from grails/grails-database-migration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
131 lines (106 loc) · 3.46 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
}
plugins {
id 'org.asciidoctor.convert' version '1.5.3'
}
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"org.grails.grails-plugin"
apply plugin:"org.grails.grails-plugin-publish"
apply plugin:"org.grails.grails-gsp"
version "3.1.1.BUILD-SNAPSHOT"
group "org.grails.plugins"
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
}
configurations {
documentation
}
dependencies {
compile "org.liquibase:liquibase-core:$liquibaseVersion"
compile("org.liquibase.ext:liquibase-hibernate5:$liquibaseVersion") {
exclude group: 'org.hibernate', module: 'hibernate-core'
exclude group: 'org.hibernate', module: 'hibernate-entitymanager'
exclude group: 'org.hibernate', module: 'hibernate-envers'
exclude group: 'org.liquibase', module: 'liquibase-core'
}
compileOnly 'org.hibernate:hibernate-core:5.1.1.Final'
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
compileOnly "org.springframework.boot:spring-boot-starter-actuator"
compileOnly "org.springframework.boot:spring-boot-autoconfigure"
compileOnly "org.springframework.boot:spring-boot-starter-tomcat"
compileOnly "org.grails:grails-web-boot"
compileOnly "org.grails:grails-dependencies"
compileOnly 'javax.servlet:javax.servlet-api:3.1.0'
compileOnly "org.grails.plugins:hibernate5"
testCompile "org.grails:grails-plugin-testing"
provided("org.grails:grails-shell") {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
documentation "org.codehaus.groovy:groovy-all:2.4.7"
}
grailsPublish {
userOrg = "grails"
githubSlug = 'grails-plugins/grails-database-migration'
license {
name = 'Apache-2.0'
}
title = "Grails Database Migration Plugin"
desc = "Grails Database Migration Plugin"
developers = [kazukiyamamoto: "Kazuki YAMAMOTO"]
}
asciidoctor {
resources {
from('src/docs/images')
into "./images"
}
attributes 'experimental' : 'true',
'compat-mode' : 'true',
'toc' : 'left',
'icons' : 'font',
'version' : project.version,
'groupId' : project.group,
'artifactId' : project.name,
'sourcedir' : "${projectDir}/src/main/groovy",
'liquibaseVersion': liquibaseVersion
}
task apidocs(type: Groovydoc) {
source project.files('src/main/groovy')
destinationDir = new File(buildDir, 'docs/api')
// Might need a classpath
docTitle = "Grails Database Migration Plugin ${version}"
classpath = configurations.documentation
groovyClasspath = configurations.documentation
}
task docs(type:Copy, dependsOn:[apidocs, asciidoctor]) {
from "$buildDir/asciidoc/html5"
into "$buildDir/docs"
}
jar {
exclude "testapp/**/**"
}
configurations.testCompile.extendsFrom(configurations.compileOnly)