-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
180 lines (146 loc) · 4.96 KB
/
build.gradle
File metadata and controls
180 lines (146 loc) · 4.96 KB
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
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"
}
}
version "2.0.1"
group "com.causecode.plugins"
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"org.grails.grails-plugin"
apply plugin:"jacoco"
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'signing'
repositories mavenRepos
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
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-tomcat:1.5.12.RELEASE"
compile "org.grails:grails-core:3.3.5"
compile "org.grails:grails-logging:3.3.5"
compile "org.grails:grails-plugin-services:3.3.5"
compile "org.grails.plugins:quartz:2.0.13"
compile "org.grails.plugins:async:3.3.2"
console "org.grails:grails-console"
provided "org.grails:grails-plugin-url-mappings:3.3.5"
provided "org.grails:grails-plugin-domain-class:3.3.5"
provided "org.grails.plugins:mongodb:6.1.5"
provided "org.grails.plugins:embedded-mongodb:1.0.2"
compile 'org.grails.plugins:converters:3.3.1'
provided 'org.apache.commons:commons-io:1.3.2'
profile "org.grails.profiles:plugin"
// Test dependencies
testCompile "org.grails:grails-test-mixins:3.3.0"
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-plugin-testing:3.2.7"
}
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: [
'**/*UpdateEmbeddedInstancesJob.*/**',
'**/*Application.*/**'
])
})
}
}
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}
signing {
useGpgCmd()
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
if (!project.hasProperty('ossrhUsername') || !project.hasProperty('ossrhPassword')) {
return
}
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 'mongo-update-embedded'
packaging 'jar'
description 'This plugin is used to update embedded instances when parent class gets updated.'
url 'https://github.com/causecode/mongo-update-embedded'
scm {
url 'scm:svn:https://github.com/causecode/mongo-update-embedded'
connection 'scm:svn:https://github.com/causecode/mongo-update-embedded.git'
developerConnection 'https://github.com:causecode/mongo-update-embedded.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 'bootstrap@causecode.com'
}
}
}
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId "mongo-update-embedded"
pom.withXml {
def pomNode = asNode()
// version-less dependencies are handled with dependencyManagement
pomNode.dependencies.dependency.findAll {
it.version.text().isEmpty()
}.each {
it.replaceNode {}
}
}
}
}
}
jar {
exclude('test/**')
}
integrationTest {
reports.html.enabled true
}
task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}