17
17
* - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
18
18
*/
19
19
20
- /*
21
- * This has to be here... It will not be taken into account in common.gradle!
22
- *
23
- * Looks like a serious bug... See also:
24
- *
25
- * http://forums.gradle.org/gradle/topics/buildscript_in_subprojects_ignored
26
- */
27
- /*
28
- * This has to be here... It will not be taken into account in common.gradle!
29
- *
30
- * Looks like a serious bug... See also:
31
- *
32
- * http://forums.gradle.org/gradle/topics/buildscript_in_subprojects_ignored
33
- *
34
- * We also use Spring's propdeps plugin to have a _real_ provided scope. See:
35
- *
36
- * https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
37
- */
38
-
39
20
apply(plugin : " java" );
40
21
apply(plugin : " maven" );
41
22
apply(plugin : " signing" );
42
23
apply(plugin : " osgi" );
43
24
apply(plugin : " idea" );
44
25
apply(plugin : " eclipse" );
45
26
46
- group = " com.github.fge " ;
47
- version = " 2.2.6 " ;
27
+ group = " com.github.java-json-tools " ;
28
+ version = " 2.2.7 " ;
48
29
sourceCompatibility = " 1.6" ;
49
30
targetCompatibility = " 1.6" ; // defaults to sourceCompatibility
50
31
51
- project. ext {
52
- description = " A Java implementation of the JSON Schema specification" ;
53
- };
54
-
55
32
/*
56
33
* Repositories to use
57
34
*/
@@ -63,8 +40,7 @@ repositories {
63
40
* List of dependencies
64
41
*/
65
42
dependencies {
66
- compile(group : " com.github.fge" , name : " json-schema-core" ,
67
- version : " 1.2.5" );
43
+ compile(group : " com.github.java-json-tools" , name : " json-schema-core" , version : " 1.2.8" );
68
44
compile(group : " javax.mail" , name : " mailapi" , version : " 1.4.3" );
69
45
compile(group : " joda-time" , name : " joda-time" , version : " 2.3" );
70
46
compile(group : " com.googlecode.libphonenumber" , name : " libphonenumber" ,
@@ -90,7 +66,7 @@ javadoc.options.links("http://fge.github.io/btf/");
90
66
javadoc. options. links(" http://fge.github.io/msg-simple/" );
91
67
javadoc. options. links(" http://fge.github.io/jackson-coreutils/" );
92
68
javadoc. options. links(" http://fge.github.io/uri-template/" );
93
- javadoc. options. links(" http://fge .github.io/json-schema-core/1.2.x/" );
69
+ javadoc. options. links(" http://java-json-tools .github.io/json-schema-core/1.2.x/" );
94
70
95
71
96
72
/*
@@ -128,12 +104,14 @@ javadoc.options {
128
104
* Equally annoyingly, the docFilesSubDirs option above does not seem to have
129
105
* any effect :/
130
106
*/
131
- task copyDocFiles (dependsOn : javadoc) << {
132
- copy {
133
- from(" src/main/javadoc" ) {
134
- include " **/doc-files/**" ;
135
- };
136
- into javadoc. destinationDir;
107
+ task copyDocFiles (dependsOn : javadoc) {
108
+ doLast {
109
+ copy {
110
+ from(" src/main/javadoc" ) {
111
+ include " **/doc-files/**" ;
112
+ };
113
+ into javadoc. destinationDir;
114
+ }
137
115
}
138
116
}
139
117
@@ -167,38 +145,42 @@ artifacts {
167
145
}
168
146
169
147
task wrapper (type : Wrapper ) {
170
- gradleVersion = " 1.11 " ;
148
+ gradleVersion = " 3.5 " ;
171
149
distributionUrl = " http://services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip" ;
172
150
}
173
151
174
- task pom << {
175
- pom {}. writeTo(" ${ projectDir} /pom.xml" );
152
+ task pom {
153
+ doLast {
154
+ pom {}. writeTo(" ${ projectDir} /pom.xml" );
155
+ }
176
156
}
177
157
178
158
/*
179
159
* SIGNING
180
160
*/
181
161
182
162
project. ext {
183
- gitrwscm = sprintf ( " git@github.com:fge/%s " , name) ;
184
- gitroscm = sprintf (" https:// github.com/fge/%s.git " , name);
185
- projectURL = sprintf (" https://github.com/fge /%s" , name);
163
+ description = " A Java implementation of the JSON Schema specification " ;
164
+ scmUrl = sprintf (" git@ github.com:box-metadata/%s " , name);
165
+ projectURL = sprintf (" https://github.com/box-metadata /%s" , name);
186
166
sonatypeStaging = " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ;
187
167
sonatypeSnapshots = " https://oss.sonatype.org/content/repositories/snapshots/" ;
188
168
};
189
169
190
- task checkSigningRequirements << {
191
- def requiredProperties = [ " sonatypeUsername" , " sonatypePassword" ];
192
- def noDice = false ;
193
- requiredProperties. each {
194
- if (project. properties[it] == null ) {
195
- noDice = true ;
196
- System . err. printf (" property \" %s\" is not defined!" , it);
170
+ task checkSigningRequirements {
171
+ doLast {
172
+ def requiredProperties = [ " sonatypeUsername" , " sonatypePassword" ];
173
+ def noDice = false ;
174
+ requiredProperties. each {
175
+ if (project. properties[it] == null ) {
176
+ noDice = true ;
177
+ System . err. printf (" property \" %s\" is not defined!" , it);
178
+ }
197
179
}
180
+ if (noDice)
181
+ throw new IllegalStateException (" missing required properties for " +
182
+ " upload" );
198
183
}
199
- if (noDice)
200
- throw new IllegalStateException (" missing required properties for " +
201
- " upload" );
202
184
}
203
185
204
186
uploadArchives {
@@ -234,15 +216,15 @@ uploadArchives {
234
216
uploadArchives. repositories. mavenDeployer
235
217
]* . pom* . whenConfigured { pom ->
236
218
pom. project {
237
- name " ${ name} " ;
219
+ name " ${ project. name} " ;
238
220
packaging " jar" ;
239
- description " ${ description} " ;
221
+ description " ${ project.ext. description} " ;
240
222
url " ${ projectURL} " ;
241
223
242
224
scm {
243
- url " ${ gitrwscm } " ;
244
- connection " ${ gitrwscm } " ;
245
- developerConnection " ${ gitroscm } " ;
225
+ url " ${ scmUrl } " ;
226
+ connection " scm:git: ${ scmUrl } " ;
227
+ developerConnection " scm:git: ${ scmUrl } " ;
246
228
}
247
229
248
230
licenses {
@@ -260,9 +242,9 @@ uploadArchives {
260
242
261
243
developers {
262
244
developer {
263
- id " fge " ;
264
- name " Francis Galiegue " ;
265
- email " fgaliegue @gmail.com" ;
245
+ id " huggsboson " ;
246
+ name " John Huffaker " ;
247
+ email " jhuffaker+java-json-tools @gmail.com" ;
266
248
}
267
249
}
268
250
}
0 commit comments