1
1
buildscript {
2
- ext {
3
- grailsVersion = project. grailsVersion
4
- }
5
2
repositories {
6
- mavenLocal()
7
3
maven { url " https://repo.grails.org/grails/core" }
8
- maven { url ' https://repo.spring.io/libs-snapshot' }
9
4
}
10
5
dependencies {
11
6
classpath " org.grails:grails-gradle-plugin:$grailsVersion "
12
- classpath " org.grails.plugins:hibernate:4.3.10.5"
13
- classpath ' org.ajoberstar:gradle-git:1.1.0'
7
+ classpath " org.grails.plugins:hibernate5:6.0.7"
14
8
}
15
9
}
16
10
17
11
plugins {
18
- id " io.spring.dependency-management" version " 0.5.4.RELEASE"
19
12
id ' org.asciidoctor.convert' version ' 1.5.3'
20
13
}
21
14
22
15
version " 0.1"
23
16
group " com.example"
24
17
25
- apply plugin : " spring-boot"
26
18
apply plugin : " war"
27
- apply plugin : ' eclipse'
28
- apply plugin : ' idea'
19
+ apply plugin : " eclipse"
20
+ apply plugin : " idea"
29
21
apply plugin : " org.grails.grails-web"
30
22
31
23
ext {
32
- grailsVersion = project. grailsVersion
33
- gradleWrapperVersion = project. gradleWrapperVersion
34
24
restDocsVersion = " 1.2.0.BUILD-SNAPSHOT"
35
25
snippetsDir = file(' src/docs/generated-snippets' )
36
26
}
@@ -43,12 +33,12 @@ repositories {
43
33
44
34
dependencyManagement {
45
35
dependencies {
36
+ dependency " org.springframework.restdocs:spring-restdocs-core:$restDocsVersion "
46
37
dependency " org.springframework.restdocs:spring-restdocs-restassured:$restDocsVersion "
47
38
dependency " org.springframework.restdocs:spring-restdocs-asciidoctor:$restDocsVersion "
48
39
}
49
40
imports {
50
41
mavenBom " org.grails:grails-bom:$grailsVersion "
51
- mavenBom " org.springframework:spring-framework-bom:4.3.1.RELEASE"
52
42
}
53
43
applyMavenExclusions false
54
44
}
@@ -57,34 +47,39 @@ dependencies {
57
47
asciidoctor " org.springframework.restdocs:spring-restdocs-asciidoctor"
58
48
59
49
compile " org.springframework.boot:spring-boot-starter-logging"
60
- compile " org.springframework.boot:spring-boot-starter-actuator"
61
50
compile " org.springframework.boot:spring-boot-autoconfigure"
51
+ compile " org.springframework.boot:spring-boot-starter-actuator"
62
52
compile " org.springframework.boot:spring-boot-starter-tomcat"
53
+ compile " org.grails:grails-core"
63
54
compile " org.grails:grails-plugin-url-mappings"
64
55
compile " org.grails:grails-plugin-rest"
56
+ compile " org.grails:grails-plugin-codecs"
65
57
compile " org.grails:grails-plugin-interceptors"
66
58
compile " org.grails:grails-plugin-services"
67
59
compile " org.grails:grails-plugin-datasource"
68
60
compile " org.grails:grails-plugin-databinding"
69
61
compile " org.grails:grails-plugin-async"
70
62
compile " org.grails:grails-web-boot"
71
63
compile " org.grails:grails-logging"
72
-
73
- compile " org.grails.plugins:hibernate"
74
64
compile " org.grails.plugins:cache"
75
- compile " org.hibernate:hibernate-ehcache"
65
+ compile " org.grails.plugins:hibernate5"
66
+ compile " org.hibernate:hibernate-core:5.1.2.Final"
67
+ compile " org.hibernate:hibernate-ehcache:5.1.2.Final"
68
+ compile " org.grails.plugins:views-json"
69
+ compile " org.grails.plugins:views-json-templates"
70
+ console " org.grails:grails-console"
71
+
72
+ profile " org.grails.profiles:rest-api"
76
73
77
74
runtime " com.h2database:h2"
78
75
79
76
testCompile " org.grails:grails-plugin-testing"
80
77
testCompile " org.grails.plugins:geb"
81
- testCompile ' org.springframework.restdocs:spring-restdocs-restassured'
82
-
83
- console " org.grails:grails-console"
84
- }
78
+ testCompile " org.grails:grails-datastore-rest-client"
79
+ testCompile " org.springframework.restdocs:spring-restdocs-restassured"
85
80
86
- task wrapper ( type : Wrapper ) {
87
- gradleVersion = gradleWrapperVersion
81
+ testRuntime " org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1 "
82
+ testRuntime " net.sourceforge.htmlunit:htmlunit:2.18 "
88
83
}
89
84
90
85
ext {
0 commit comments