-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update plugin-publish version to 1.2.0 (#23)
- Loading branch information
Showing
2 changed files
with
10 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,10 @@ | ||
// * * * * * * * * * * * * | ||
// Plugins | ||
// * * * * * * * * * * * * | ||
|
||
plugins { | ||
id 'groovy' | ||
id 'java-gradle-plugin' | ||
id 'com.gradle.plugin-publish' version '1.2.0' | ||
id 'net.researchgate.release' version '2.8.1' | ||
// Publishing publicly | ||
id 'com.gradle.plugin-publish' version '0.14.0' | ||
// Publishing to maven | ||
id 'maven-publish' | ||
} | ||
|
||
// * * * * * * * * * * * * | ||
// Dependencies | ||
// * * * * * * * * * * * * | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
@@ -26,51 +15,23 @@ dependencies { | |
implementation group: 'org.apache.commons', name: 'commons-lang3', version:'3.12.0' | ||
testImplementation group: 'com.github.tomakehurst', name: 'wiremock-jre8-standalone', version:'2.35.0' | ||
testImplementation gradleTestKit() | ||
testImplementation 'junit:junit:4.13' | ||
testImplementation 'junit:junit:4.13.2' | ||
testImplementation group: 'io.swagger', name: 'swagger-parser', version:'1.0.65' | ||
} | ||
|
||
// * * * * * * * * * * * * | ||
// Project configuration | ||
// * * * * * * * * * * * * | ||
|
||
project.description = 'Gradle Plugin for SwaggerHub' | ||
project.group = 'io.swagger' | ||
|
||
project.ext.name = 'swaggerhub' | ||
project.ext.pluginId = 'io.swagger.swaggerhub' | ||
project.ext.scm = 'scm:[email protected]:swagger-api/swaggerhub-gradle-plugin.git' | ||
project.ext.url = 'https://github.com/swagger-api/swaggerhub-gradle-plugin' | ||
version = '1.1.0' | ||
group = 'io.swagger' | ||
|
||
// Configuration for: java-gradle-plugin | ||
gradlePlugin { | ||
website = 'https://github.com/swagger-api/swaggerhub-gradle-plugin' | ||
vcsUrl = 'https://github.com/swagger-api/swaggerhub-gradle-plugin' | ||
plugins { | ||
swaggerhub { | ||
id = project.pluginId | ||
id = 'io.swagger.swaggerhub' | ||
implementationClass = 'io.swagger.swaggerhub.SwaggerHubPlugin' | ||
} | ||
} | ||
} | ||
|
||
// * * * * * * * * * * * * | ||
// Publishing | ||
// * * * * * * * * * * * * | ||
|
||
|
||
// Publishing to plugins.gradle.org | ||
// -------------------------------- | ||
|
||
// Configuration for: com.gradle.plugin-publish | ||
pluginBundle { | ||
website = project.url | ||
vcsUrl = project.scm | ||
tags = ['swagger', 'swaggerhub', 'openapi', 'api'] | ||
|
||
plugins { | ||
swaggerhubPlugin { | ||
displayName = 'SwaggerHub Gradle Plugin ' | ||
description = project.description | ||
id = project.pluginId | ||
displayName = 'SwaggerHub Gradle Plugin' | ||
description = 'Gradle Plugin for SwaggerHub' | ||
tags.set(['swagger', 'swaggerhub', 'openapi', 'api']) | ||
} | ||
} | ||
} |