Skip to content

Commit 9fe013c

Browse files
Updated plugin to grails 4
1 parent fd08059 commit 9fe013c

File tree

22 files changed

+644
-490
lines changed

22 files changed

+644
-490
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,14 @@
22
.gradle
33
build
44
ajax-tags.iml
5+
6+
Thumbs.db
7+
.DS_Store
8+
build/
9+
out/
10+
*.iml
11+
*.ipr
12+
*.iws
13+
.project
14+
.settings
15+
.classpath

build.gradle

+35-27
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
buildscript {
2-
ext {
3-
grailsVersion = project.grailsVersion
4-
}
52
repositories {
63
mavenLocal()
74
maven { url "https://repo.grails.org/grails/core" }
@@ -11,33 +8,19 @@ buildscript {
118
}
129
}
1310

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"
2012
group "org.grails.plugins"
2113

2214
apply plugin: 'maven-publish'
2315
apply plugin: 'eclipse'
2416
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"
2820
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
4021

22+
sourceCompatibility = 1.8
23+
targetCompatibility = 1.8
4124

4225
repositories {
4326
mavenLocal()
@@ -52,8 +35,16 @@ dependencyManagement {
5235
applyMavenExclusions false
5336
}
5437

38+
configurations {
39+
developmentOnly
40+
runtimeClasspath {
41+
extendsFrom developmentOnly
42+
}
43+
}
44+
5545
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"
5748
provided "org.springframework.boot:spring-boot-starter-actuator"
5849
provided "org.springframework.boot:spring-boot-autoconfigure"
5950
provided "org.springframework.boot:spring-boot-starter-tomcat"
@@ -62,11 +53,28 @@ dependencies {
6253
provided "org.grails:grails-dependencies"
6354
provided 'javax.servlet:javax.servlet-api:3.1.0'
6455

65-
testCompile "org.grails:grails-plugin-testing"
56+
testCompile "org.grails:grails-web-testing-support"
6657

6758
console "org.grails:grails-console"
59+
profile "org.grails.profiles:web-plugin"
6860
}
6961

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+
}
7278
}
79+
// enable if you wish to package this plugin as a standalone application
80+
bootJar.enabled = false

gradle.properties

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
grailsVersion=3.0.0.RC2
2-
gradleWrapperVersion=2.3
1+
grailsVersion=4.0.11
2+
gorm.version=7.0.8.RELEASE
3+
org.gradle.daemon=true
4+
org.gradle.parallel=true
5+
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M

gradle/wrapper/gradle-wrapper.jar

4.07 KB
Binary file not shown.
+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Feb 04 17:05:29 CST 2015
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip

0 commit comments

Comments
 (0)