Added bintry plugin
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
= Release Notes
|
||||||
|
|
||||||
|
== Version 0.1.0
|
||||||
|
* Initial version with support for AsciiDoc and Markdown
|
||||||
@@ -28,7 +28,6 @@ subprojects{
|
|||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
apply plugin: 'com.github.kt3k.coveralls'
|
apply plugin: 'com.github.kt3k.coveralls'
|
||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
apply plugin: 'com.jfrog.bintray'
|
|
||||||
|
|
||||||
version = '0.1.0'
|
version = '0.1.0'
|
||||||
group = 'io.swagger2markup'
|
group = 'io.swagger2markup'
|
||||||
|
|||||||
33
gradle/publishing.gradle
Normal file
33
gradle/publishing.gradle
Normal 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'
|
||||||
|
}
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
apply plugin: 'com.jfrog.bintray'
|
||||||
|
apply from: '../gradle/publishing.gradle'
|
||||||
|
|
||||||
description = 'swagger2markup core library'
|
description = 'swagger2markup core library'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
Reference in New Issue
Block a user