-
Notifications
You must be signed in to change notification settings - Fork 951
/
build.gradle
166 lines (148 loc) · 6.71 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
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
publishing {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
if(isBuildSnapshot) {
url "https://repo.grails.org/grails/libs-snapshots-local"
}
else {
url "https://repo.grails.org/grails/libs-releases-local"
}
}
}
publications {
maven(MavenPublication) {
pom.withXml {
def xml = asNode()
xml.children().last() + {
delegate.name "Grails Dependencies"
delegate.description "Grails default supported dependency definitions"
delegate.url 'http://grails.org'
delegate.licenses {
delegate.license {
delegate.name "Apache License, Version 2.0"
delegate.url 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
delegate.scm {
delegate.url 'scm:git@github.com:grails/grails-core.git'
delegate.connection 'scm:git@github.com:grails/grails-core.git'
delegate.developerConnection 'scm:git@github.com:grails/grails-core.git'
}
delegate.developers {
delegate.developer {
delegate.id 'graemerocher'
delegate.name 'Graeme Rocher'
}
delegate.developer {
delegate.id 'jeffscottbrown'
delegate.name 'Jeff Brown'
}
delegate.developer {
delegate.id 'burtbeckwith'
delegate.name 'Burt Beckwith'
}
}
delegate.dependencies {
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-bootstrap"
delegate.version( project.version )
delegate.scope "compile"
delegate.exclusions {
delegate.exclusion {
delegate.groupId 'jline'
delegate.artifactId 'jline'
}
delegate.exclusion {
delegate.groupId 'org.fusesource.jansi'
delegate.artifactId 'jansi'
}
delegate.exclusion {
delegate.groupId 'net.java.dev.jna'
delegate.artifactId 'jna'
}
delegate.exclusion {
delegate.groupId 'org.codehaus.groovy'
delegate.artifactId 'groovy-ant'
}
}
}
for(sub in ['rest', 'databinding', 'i18n', 'filters', 'gsp', 'services', 'url-mappings', 'interceptors']) {
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-plugin-${sub}"
delegate.version( project.version )
delegate.scope "compile"
}
}
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-plugin-async"
delegate.version( project.version )
delegate.scope "compile"
delegate.exclusions {
delegate.exclusion {
delegate.groupId 'javax'
delegate.artifactId 'javaee-web-api'
}
}
}
delegate.dependency {
delegate.groupId "com.h2database"
delegate.artifactId "h2"
delegate.version( "1.3.176" )
delegate.scope "runtime"
}
delegate.dependency {
delegate.groupId "org.grails"
delegate.artifactId "grails-plugin-testing"
delegate.version( project.version )
delegate.scope "test"
}
}
}
}
}
}
}
bintray {
def u = System.getenv("BINTRAY_USER") ?: project.hasProperty("bintrayUser") ? project.bintrayUser : ''
def p = System.getenv("BINTRAY_KEY") ?: project.hasProperty("bintrayKey") ? project.bintrayKey : ''
user = u
key = p
publications = ['maven']
publish = bintrayPublish
pkg {
repo = 'grails-core'
userOrg = 'grails'
name = 'org.grails'
desc = 'Grails Framework'
websiteUrl = 'http://grails.org'
issueTrackerUrl = 'http://jira.grails.org/browse/GRAILS'
vcsUrl = 'http://jira.grails.org/browse/GRAILS'
licenses = ['Apache-2.0']
publicDownloadNumbers = true
version {
name = project.version
gpg {
sign = true
passphrase = System.getenv("SIGNING_PASSPHRASE") ?: project.hasProperty("signingPassphrase") ? project.signingPassphrase : ''
}
mavenCentralSync {
sync = false
def ossUser = System.getenv("SONATYPE_USERNAME") ?: project.hasProperty("sonatypeOssUsername") ? project.sonatypeOssUsername : ''
def ossPass = System.getenv("SONATYPE_PASSWORD") ?: project.hasProperty("sonatypeOssPassword") ? project.sonatypeOssPassword : ''
user = ossUser
password = ossPass
}
}
}
}