-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Swagger2Markup dependency from 0.9.0 to 0.9.1 and added support to group paths by tags and order definitions
- Loading branch information
Robert Winkler
committed
Nov 12, 2015
1 parent
bb29d7b
commit 1da607e
Showing
7 changed files
with
233 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= Release Notes | ||
|
||
=== Version 0.1.0 | ||
* Initial Version | ||
* Ported over https://github.com/RobWin/swagger2markup-gradle-plugin[RobWin's swagger2Markup-gradle-plugin] to maven plugin | ||
|
||
=== Version 0.6.3 | ||
* Updated Swagger2Markup dependency to 0.6.3 | ||
* Exposed Swagger2Markup's new "separateDefinitions" in plugin configuration | ||
* Improved Testing coverage | ||
|
||
=== Version 0.7.0 | ||
* Updated Swagger2Markup dependency to 0.7.0 | ||
|
||
=== Version 0.7.1 | ||
* Updated Swagger2Markup dependency to 0.7.1 | ||
|
||
== Version 0.9.0 | ||
* Updated Swagger2Markup dependency from 0.8.0 to 0.9.0 | ||
|
||
=== Version 0.9.1 | ||
* Updated Swagger2Markup dependency from 0.9.0 to 0.9.1 |
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 |
---|---|---|
@@ -0,0 +1,81 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.1' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' | ||
//classpath "com.gradle.publish:plugin-publish-plugin:0.9.0" | ||
} | ||
} | ||
|
||
group = 'io.github.robwin' | ||
version = '0.9.1' | ||
description = 'A Swagger to Markup (AsciiDoc and Markdown) converter Maven Plugin.' | ||
|
||
apply plugin: 'groovy' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'jacoco' | ||
apply plugin: 'com.github.kt3k.coveralls' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply from: 'gradle/publishing.gradle' | ||
//apply plugin: 'java-gradle-plugin' | ||
//apply plugin: "com.gradle.plugin-publish" | ||
|
||
tasks.withType(GroovyCompile) { | ||
sourceCompatibility = "1.7" | ||
targetCompatibility = "1.7" | ||
options.deprecation = true | ||
options.encoding = 'UTF-8' | ||
options.compilerArgs << "-Xlint:unchecked" | ||
} | ||
|
||
repositories { | ||
jcenter() | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
compile 'io.github.robwin:swagger2markup:0.9.1' | ||
compile 'org.apache.maven:maven-plugin-api:3.3.3' | ||
compile 'org.apache.maven.plugin-tools:maven-plugin-annotations:3.4' | ||
testCompile 'junit:junit:4.12' | ||
testCompile 'ch.qos.logback:logback-classic:1.1.3' | ||
testCompile 'org.assertj:assertj-core:2.1.0' | ||
testCompile 'org.mockito:mockito-core:1.10.19' | ||
} | ||
|
||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.enabled = true // coveralls plugin depends on xml format report | ||
html.enabled = true | ||
} | ||
} | ||
|
||
tasks.coveralls { | ||
dependsOn 'check' | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives javadocJar | ||
} | ||
|
||
task wrapper(type: Wrapper) { | ||
gradleVersion = '2.8' | ||
} |
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 |
---|---|---|
@@ -0,0 +1,100 @@ | ||
import java.text.SimpleDateFormat | ||
|
||
Date buildTimeAndDate = new Date() | ||
ext { | ||
buildDate = new SimpleDateFormat('yyyy-MM-dd').format(buildTimeAndDate) | ||
buildTime = new SimpleDateFormat('HH:mm:ss.SSSZ').format(buildTimeAndDate) | ||
} | ||
|
||
def projectArtifactId = 'swagger2markup-gradle-plugin' | ||
|
||
jar { | ||
manifest { | ||
attributes( | ||
'Built-By': 'Robert Winkler', | ||
'Created-By': System.properties['java.version'] + " (" + System.properties['java.vendor'] + " " + System.properties['java.vm.version'] + ")", | ||
'Build-Date': project.buildDate, | ||
'Build-Time': project.buildTime, | ||
'Specification-Title': projectArtifactId, | ||
'Specification-Version': project.version, | ||
'Implementation-Title': projectArtifactId, | ||
'Implementation-Version': project.version | ||
) | ||
} | ||
} | ||
|
||
if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = '' | ||
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = '' | ||
if (!project.hasProperty('gpgPassphrase')) ext.gpgPassphrase = '' | ||
if (!project.hasProperty('ossUser')) ext.ossUser = '' | ||
if (!project.hasProperty('ossPassword')) ext.ossPassword = '' | ||
|
||
bintray { | ||
user = project.bintrayUsername | ||
key = project.bintrayApiKey | ||
dryRun = false //Whether to run this as dry-run, without deploying | ||
publish = true //If version should be auto published after an upload | ||
publications = ['mavenJava'] | ||
pkg { | ||
repo = 'maven' | ||
name = 'swagger2markup-maven-plugin' | ||
websiteUrl = 'https://github.com/Swagger2Markup/swagger2markup-maven-plugin' | ||
issueTrackerUrl = 'https://github.com/Swagger2Markup/swagger2markup-maven-plugin/issues' | ||
vcsUrl = 'https://github.com/Swagger2Markup/swagger2markup-maven-plugin.git' | ||
desc = 'A Swagger to Markup (AsciiDoc and Markdown) converter maven Plugin.' | ||
licenses = ['Apache-2.0'] | ||
version { | ||
vcsTag = project.version | ||
gpg { | ||
sign = true //Determines whether to GPG sign the files. The default is false | ||
passphrase = project.gpgPassphrase //Optional. The passphrase for GPG signing' | ||
} | ||
mavenCentralSync { | ||
sync = true //Optional (true by default). Determines whether to sync the version to Maven Central. | ||
user = ossUser //OSS user token | ||
password = ossPassword //OSS user password | ||
} | ||
} | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
pom.withXml { | ||
def devs = ['RobWin': 'Robert Winkler'] | ||
def root = asNode() | ||
|
||
root.dependencies.'*'.findAll() { | ||
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep -> | ||
dep.name == it.artifactId.text() | ||
} | ||
}.each() { | ||
it.scope*.value = 'compile' | ||
} | ||
|
||
root.appendNode('name', 'swagger2markup-gradle-plugin') | ||
root.appendNode('packaging', 'jar') | ||
root.appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-gradle-plugin') | ||
root.appendNode('description', 'A Swagger to Markup (AsciiDoc and Markdown) converter Gradle Plugin.') | ||
|
||
def license = root.appendNode('licenses').appendNode('license') | ||
license.appendNode('name', 'Apache-2.0') | ||
license.appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-gradle-plugin/blob/master/LICENSE.txt') | ||
license.appendNode('distribution', 'repo') | ||
|
||
root.appendNode('scm').appendNode('url', 'https://github.com/Swagger2Markup/swagger2markup-gradle-plugin.git') | ||
|
||
def developers = root.appendNode('developers') | ||
devs.each { | ||
def d = developers.appendNode('developer') | ||
d.appendNode('id', it.key) | ||
d.appendNode('name', it.value) | ||
} | ||
} | ||
artifact sourcesJar | ||
artifact javadocJar | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#Thu Nov 12 14:48:47 CET 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-bin.zip |
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