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
|
// * * * * * * * * * * * *
// Plugins
// * * * * * * * * * * * *
plugins {
id 'java-gradle-plugin'
id 'net.researchgate.release' version '2.6.0'
// Publishing publicly
id 'com.gradle.plugin-publish' version '0.11.0'
// Publishing to maven
id 'maven-publish'
}
// * * * * * * * * * * * *
// Dependencies
// * * * * * * * * * * * *
repositories {
jcenter()
mavenLocal()
mavenCentral()
}
dependencies {
compile gradleApi()
compile 'org.apache.commons:commons-lang3:3.7'
testCompile gradleTestKit()
testCompile 'com.github.tomakehurst:wiremock:2.14.0'
testCompile 'javax.servlet:javax.servlet-api:3.1.0'
testCompile 'javax.ws.rs:javax.ws.rs-api:2.1'
testCompile "io.swagger.core.v3:swagger-jaxrs2:${project.version}"
testCompile 'junit:junit:4+'
}
// * * * * * * * * * * * *
// Project configuration
// * * * * * * * * * * * *
project.description = 'Gradle Plugin for Swagger core'
project.group = 'io.swagger.core.v3'
project.ext.name = 'swagger-gradle-plugin'
project.ext.pluginId = 'io.swagger.core.v3.swagger-gradle-plugin'
project.ext.scm = 'https://github.com/swagger-api/swagger-core.git'
project.ext.url = 'https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin'
// Configuration for: java-gradle-plugin
gradlePlugin {
plugins {
swagger {
id = project.pluginId
implementationClass = 'io.swagger.v3.plugins.gradle.SwaggerPlugin'
}
}
}
// * * * * * * * * * * * *
// Publishing
// * * * * * * * * * * * *
// Publishing to plugins.gradle.org
// --------------------------------
// Configuration for: com.gradle.plugin-publish
pluginBundle {
website = project.url
vcsUrl = project.scm
tags = ['swagger', 'openapi', 'api']
plugins {
swagger {
displayName = 'Swagger Gradle Plugin '
description = project.description
id = project.pluginId
}
}
}
publishing {
repositories {
maven {
url mavenLocal().url
}
}
}
|