@@ -8,16 +8,16 @@ buildscript {
8
8
dependencies {
9
9
classpath group : ' gchq' , name : ' urlDependencyPlugin' , version : ' v0.1'
10
10
classpath group : ' ca.cutterslade.gradle' , name : ' gradle-dependency-analyze' , version : ' 1.1.0'
11
- classpath ' com.benjaminsproule:swagger-gradle-plugin:0.1.0 '
11
+ classpath ' com.benjaminsproule:swagger-gradle-plugin:+ '
12
12
}
13
13
}
14
14
15
15
plugins {
16
16
id " de.undercouch.download" version " 3.2.0"
17
+ // id "com.benjaminsproule.swagger" version "0.1.2"
17
18
}
18
19
19
20
apply plugin : ' gchq.urldependencies'
20
- apply plugin : ' com.benjaminsproule.swagger'
21
21
22
22
23
23
// if the project has a value for the passed property (i.e from the cmd line via -PpropName=xxx)
@@ -215,6 +215,7 @@ task wrapper(type: Wrapper) {
215
215
allprojects {
216
216
apply plugin : ' maven'
217
217
apply plugin : ' maven-publish'
218
+ // apply plugin: 'com.benjaminsproule.swagger'
218
219
219
220
group = ' stroom'
220
221
// version = getPropertyOrDefault('version', 'SNAPSHOT')
@@ -283,6 +284,25 @@ subprojects {
283
284
showStackTraces = true
284
285
}
285
286
}
287
+
288
+ // See https://github.com/kongchen/swagger-maven-plugin for details of the properties of apiSource
289
+ // See https://stackoverflow.com/questions/43104791/how-to-prevent-xml-wrapper-element-in-swagger-ui for details
290
+ // of using xml and json with swagger
291
+ // swagger {
292
+ // apiSource {
293
+ // springmvc = false
294
+ // locations = [ 'stroom.resources.query.v2.SqlStatisticsQueryResource' ]
295
+ // schemes = [ 'http' ]
296
+ // host = 'www.example.com:8080'
297
+ // basePath = '/'
298
+ // info {
299
+ // title = 'Swagger Gradle Plugin Sample'
300
+ // version = 'v1'
301
+ // }
302
+ // outputPath = "${project.rootDir}/generated/document.html"
303
+ // swaggerDirectory = "${project.rootDir}/generated/swagger-ui"
304
+ // }
305
+ // }
286
306
}
287
307
288
308
@@ -385,50 +405,3 @@ urlDependencies {
385
405
" https://github.com/gchq/hadoop-common-shaded/releases/download/$versions . hadoopCommonShaded /${ urlLibs.hadoopCommonShaded} .jar" )
386
406
}
387
407
388
- // See https://github.com/kongchen/swagger-maven-plugin for details of the properties of apiSource
389
- // See https://stackoverflow.com/questions/43104791/how-to-prevent-xml-wrapper-element-in-swagger-ui for details
390
- // of using xml and json with swagger
391
- swagger {
392
- apiSource {
393
- springmvc = false
394
- locations = [ ' stroom.resources.query.v2.SqlStatisticsQueryResource' ]
395
- schemes = [ ' http' ]
396
- host = ' www.example.com:8080'
397
- basePath = ' /'
398
- info {
399
- title = ' Swagger Gradle Plugin Sample'
400
- version = ' v1'
401
- // <!-- use markdown here because I'm using markdown for output,
402
- // if you need to use html or other markup language, you need to use your target language -->
403
- // description = 'This is a sample.'
404
- // termsOfService = 'http://www.example.com/termsOfService'
405
- // contact {
406
-
407
- // name = 'Name'
408
- // url = 'http://www.example.com'
409
- // }
410
- // license {
411
- // url = 'http://www.apache.org/licenses/LICENSE-2.0.html'
412
- // name = 'Apache 2.0'
413
- // }
414
- }
415
- // securityDefinition {
416
- // name = 'basicAuth'
417
- // type = 'basic'
418
- // }
419
- // securityDefinition {
420
- // json = '/securityDefinition.json'
421
- // }
422
- //
423
- // Support classpath or file absolute path here.
424
- // 1) classpath e.g: "classpath:/markdown.hbs", "classpath:/templates/hello.html"
425
- // 2) file e.g: "${project.rootDir}/src/main/resources/markdown.hbs", "${project.rootDir}/src/main/resources/template/hello.html"
426
- //
427
- // templatePath = "${project.rootDir}/src/test/resources/strapdown.html.hbs"
428
- outputPath = " ${ project.rootDir} /generated/document.html"
429
- swaggerDirectory = " ${ project.rootDir} /generated/swagger-ui"
430
- // swaggerApiReader = 'com.wordnik.swagger.jaxrs.reader.DefaultJaxrsApiReader'
431
- // modelConverters = [ 'io.swagger.validator.BeanValidator' ]
432
- // attachSwaggerArtifact = true - WILL BE ADDED IN THE FUTURE
433
- }
434
- }
0 commit comments