-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
188 lines (159 loc) · 5.94 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
buildscript {
ext {
mavenRepos = {
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://repo.grails.org/grails/core" }
mavenCentral()
}
}
repositories mavenRepos
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath 'org.grails.plugins:views-gradle:1.2.7'
}
}
group "com.causecode.plugins"
version "1.0.1"
apply plugin: 'idea'
apply plugin: 'org.grails.grails-plugin'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'org.grails.grails-gsp'
apply plugin: 'org.grails.plugins.views-json'
apply plugin: 'jacoco'
repositories mavenRepos
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
// Default dependencies in grails 3.3.5 for plugin
// While porting to a new grails version, create a blank app and replace the default dependencies with the new ones.
compile "org.springframework.boot:spring-boot-starter-logging:1.5.12.RELEASE"
compile "org.springframework.boot:spring-boot-autoconfigure:1.5.12.RELEASE"
compile "org.springframework.boot:spring-boot-starter-actuator:1.5.12.RELEASE"
compile "org.springframework.boot:spring-boot-starter-tomcat:1.5.12.RELEASE"
compile "org.grails:grails-core:3.3.5"
compile "org.grails:grails-web-boot:3.3.5"
compile "org.grails:grails-logging:3.3.5"
compile "org.grails:grails-plugin-rest:3.3.5"
compile "org.grails:grails-plugin-databinding:3.3.5"
compile "org.grails:grails-plugin-i18n:3.3.5"
compile "org.grails:grails-plugin-services:3.3.5"
compile "org.grails:grails-plugin-url-mappings:3.3.5"
compile "org.grails:grails-plugin-interceptors:3.3.5"
compile "org.grails.plugins:cache:4.0.0"
compile "org.grails.plugins:async:3.3.2"
compile "org.grails.plugins:scaffolding:3.4.1"
compile "org.grails.plugins:gsp:3.3.1"
compile "org.grails.plugins:asynchronous-mail:2.0.2"
console "org.grails:grails-console"
profile "org.grails.profiles:web-plugin"
provided "org.hibernate:hibernate-core:5.1.5.Final"
provided "org.grails.plugins:hibernate5:6.1.9"
provided "org.grails:grails-plugin-domain-class"
runtime "com.h2database:h2"
testCompile "org.grails:grails-test-mixins:3.3.0"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
/*
* Dependencies which were needed for the application/plugin.
*/
provided 'org.grails.plugins:spring-security-core:3.2.1'
provided "javax.validation:validation-api:1.1.0.Final"
provided "org.apache.tomcat:tomcat-jdbc"
provided "org.grails.plugins:views-json:1.2.7"
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
useGpgCmd()
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'nucleus'
packaging 'jar'
description 'nucleus is a Grails-Groovy plugin which contains utility methods, classes and endpoints.'
url 'https://github.com/causecode/nucleus'
scm {
url 'scm:svn:https://github.com/causecode/nucleus'
connection 'scm:svn:https://github.com/causecode/nucleus.git'
developerConnection 'https://github.com:causecode/nucleus.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'causecode'
name 'CauseCode Technologies'
email '[email protected]'
}
}
}
}
}
}
jacoco {
toolVersion = '0.7.7.201606060606'
reportsDir = file("$buildDir/jacoco")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.enabled true
html.destination "${buildDir}/jacoco/jacocoHtml/"
xml.destination "${buildDir}/jacoco/jacocoXml/jacoco.xml"
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
exclude: [
'**/NucleusTagLib*/**',
'**/RenderTagLib*/**',
'**/NucleusBootStrap*/**',
'**/NucleusGrailsPlugin*/**',
'**/NucleusUrlMappings*/**',
'**/UrlMappings*/**',
'**/CustomValidationErrorMarshaller*/**',
'**/SitemapMarshaller*/**',
'**/Hashids*/**',
'**/RestfulController*/**',
'**/BaseController*/**',
'**/GenericEnhancers*/**',
'**/NucleusDevBootStrap*/**'
])
})
}
executionData test
dependsOn test
}
jar {
exclude('**/nucleus/UrlMappings*')
exclude('**/com/causecode/user/**/**')
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}