Merge branch '2.1.x'

This commit is contained in:
Marcin Grzejszczak
2019-04-25 11:58:54 +04:00
3 changed files with 42 additions and 0 deletions

View File

@@ -8,10 +8,15 @@ buildscript {
if (project.hasProperty('fatJar')) {
jcenter()
}
//For plugin-publish-plugin. Could be limited only to that dependency with Gradle 5.1+ - https://docs.gradle.org/5.1.1/release-notes.html#repository-to-dependency-matching
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "com.bmuschko:gradle-nexus-plugin:2.3"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath 'com.gradle.publish:plugin-publish-plugin:0.9.10'
if (project.hasProperty('fatJar')) {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}

View File

@@ -56,6 +56,27 @@ if (isReleaseToCentral) {
signing {
sign configurations.archives
}
apply plugin: 'com.gradle.plugin-publish'
pluginBundle {
website = 'https://github.com/spring-cloud/spring-cloud-contract'
vcsUrl = 'https://github.com/spring-cloud/spring-cloud-contract'
plugins {
plugin {
id = 'org.springframework.cloud.contract'
displayName = 'spring-cloud-contract'
description = 'Spring Cloud Contract Gradle Plugin'
tags = ['spring', 'spring-framework', 'spring-cloud', 'spring-cloud-contract']
}
}
mavenCoordinates {
groupId = project.group
artifactId = project.name
}
}
}
afterEvaluate {

View File

@@ -0,0 +1,16 @@
#
# Copyright 2013-2019 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
implementation-class=org.springframework.cloud.contract.verifier.plugin.SpringCloudContractVerifierGradlePlugin