Added bintry plugin

This commit is contained in:
Robert Winkler
2015-02-13 14:27:27 +01:00
parent 2a7ce98424
commit c0cf09b358
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
= Release Notes
== Version 0.1.0
* Initial version with support for AsciiDoc and Markdown

View File

@@ -28,7 +28,6 @@ subprojects{
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.jfrog.bintray'
version = '0.1.0'
group = 'io.swagger2markup'

33
gradle/publishing.gradle Normal file
View File

@@ -0,0 +1,33 @@
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'
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 = ''
bintray {
user = project.bintrayUsername
key = project.bintrayApiKey
pkg.repo = 'swagger2markup'
}

View File

@@ -1,3 +1,6 @@
apply plugin: 'com.jfrog.bintray'
apply from: '../gradle/publishing.gradle'
description = 'swagger2markup core library'
dependencies {