Added info about the new plugin portal; fixes gh-1054

This commit is contained in:
Marcin Grzejszczak
2019-08-07 22:03:51 +02:00
parent 7b60206c77
commit 39a4718957

View File

@@ -34,7 +34,8 @@ documnetation for more information]
To add a Gradle plugin with dependencies, you can use code similar to the following:
====
[source,groovy,indent=0]
[source,groovy,indent=0,subs="verbatim,attributes",role="primary"]
.Plugin DSL
----
buildscript {
repositories {
@@ -55,6 +56,39 @@ dependencyManagement {
}
}
dependencies {
testCompile "org.codehaus.groovy:groovy-all:${groovyVersion}"
// example with adding Spock core and Spock Spring
testCompile "org.spockframework:spock-core:${spockVersion}"
testCompile "org.spockframework:spock-spring:${spockVersion}"
testCompile 'org.springframework.cloud:spring-cloud-starter-contract-verifier'
}
----
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
.Legacy Plugin Application
----
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springboot_version}"
}
}
apply plugin: 'groovy'
plugins {
id "org.springframework.cloud.contract" version "${GAVerifierVersion}"
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:${verifier_version}"
}
}
dependencies {
testCompile "org.codehaus.groovy:groovy-all:${groovyVersion}"
// example with adding Spock core and Spock Spring
@@ -65,6 +99,8 @@ dependencies {
----
====
IMPORTANT: The Plugin DSL option will only work for GA (General Availability) releases (i.e. `2.2.0.RELEASE` etc.).
[[gradle-and-rest-assured]]
== Gradle and Rest Assured 2.0