1
1
buildscript {
2
- ext {
3
- grailsVersion = project. grailsVersion
4
- }
5
2
repositories {
6
3
mavenLocal()
7
4
maven { url " https://repo.grails.org/grails/core" }
@@ -11,33 +8,19 @@ buildscript {
11
8
}
12
9
}
13
10
14
- plugins {
15
- id " io.spring.dependency-management" version " 0.4.0.RELEASE"
16
- id " com.jfrog.bintray" version " 1.1"
17
- }
18
-
19
- version " 1.0.1.BUILD-SNAPSHOT"
11
+ version " 1.0.0"
20
12
group " org.grails.plugins"
21
13
22
14
apply plugin : ' maven-publish'
23
15
apply plugin : ' eclipse'
24
16
apply plugin : ' idea'
25
- apply plugin : " spring-boot "
26
- apply plugin : " org.grails.grails-plugin"
27
- apply plugin : " org.grails.grails-gsp"
17
+ apply plugin : " io. spring.dependency-management "
18
+ apply plugin :" org.grails.grails-plugin"
19
+ apply plugin :" org.grails.grails-gsp"
28
20
apply plugin : " org.grails.grails-doc"
29
- // Used for publishing to central repository, remove if not needed
30
- apply from :' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
31
- apply from :' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
32
-
33
- ext {
34
- grailsVersion = project. grailsVersion
35
- gradleWrapperVersion = project. gradleWrapperVersion
36
- }
37
-
38
- sourceCompatibility = 1.7
39
- targetCompatibility = 1.7
40
21
22
+ sourceCompatibility = 1.8
23
+ targetCompatibility = 1.8
41
24
42
25
repositories {
43
26
mavenLocal()
@@ -52,8 +35,16 @@ dependencyManagement {
52
35
applyMavenExclusions false
53
36
}
54
37
38
+ configurations {
39
+ developmentOnly
40
+ runtimeClasspath {
41
+ extendsFrom developmentOnly
42
+ }
43
+ }
44
+
55
45
dependencies {
56
- provided ' org.springframework.boot:spring-boot-starter-logging'
46
+ developmentOnly(" org.springframework.boot:spring-boot-devtools" )
47
+ provided " org.springframework.boot:spring-boot-starter-logging"
57
48
provided " org.springframework.boot:spring-boot-starter-actuator"
58
49
provided " org.springframework.boot:spring-boot-autoconfigure"
59
50
provided " org.springframework.boot:spring-boot-starter-tomcat"
@@ -62,11 +53,28 @@ dependencies {
62
53
provided " org.grails:grails-dependencies"
63
54
provided ' javax.servlet:javax.servlet-api:3.1.0'
64
55
65
- testCompile " org.grails:grails-plugin -testing"
56
+ testCompile " org.grails:grails-web -testing-support "
66
57
67
58
console " org.grails:grails-console"
59
+ profile " org.grails.profiles:web-plugin"
68
60
}
69
61
70
- task wrapper (type : Wrapper ) {
71
- gradleVersion = gradleWrapperVersion
62
+ bootRun {
63
+ ignoreExitValue true
64
+ jvmArgs(
65
+ ' -Dspring.output.ansi.enabled=always' ,
66
+ ' -noverify' ,
67
+ ' -XX:TieredStopAtLevel=1' ,
68
+ ' -Xmx1024m' )
69
+ sourceResources sourceSets. main
70
+ String springProfilesActive = ' spring.profiles.active'
71
+ systemProperty springProfilesActive, System . getProperty(springProfilesActive)
72
+ }
73
+
74
+ tasks. withType(GroovyCompile ) {
75
+ configure(groovyOptions) {
76
+ forkOptions. jvmArgs = [' -Xmx1024m' ]
77
+ }
72
78
}
79
+ // enable if you wish to package this plugin as a standalone application
80
+ bootJar. enabled = false
0 commit comments