Fixing the build (#63)
we are installing artifacts twice. With Maven and Gradle then. We need to change that. fixes #62
This commit is contained in:
committed by
GitHub
parent
317a25b589
commit
012eac8f3c
7
pom.xml
7
pom.xml
@@ -200,12 +200,6 @@
|
||||
<fileset>
|
||||
<directory>target</directory>
|
||||
</fileset>
|
||||
<fileset>
|
||||
<directory>${env.HOME}/.m2/repository/com/example/</directory>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
<fileset>
|
||||
<directory>${env.HOME}/.m2/repository/org/springframework/cloud/contract/verifier/stubs/</directory>
|
||||
<includes>
|
||||
@@ -218,7 +212,6 @@
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>spring</id>
|
||||
|
||||
@@ -37,36 +37,47 @@
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Invoke integration tests in the install phase, after the maven-plugin
|
||||
is available -->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-invoker-plugin</artifactId>
|
||||
<inherited>false</inherited>
|
||||
<configuration>
|
||||
<settingsFile>src/it/settings.xml</settingsFile>
|
||||
<projectsDirectory>standalone</projectsDirectory>
|
||||
<skipInvocation>${skipTests}</skipInvocation>
|
||||
<streamLogs>true</streamLogs>
|
||||
<profiles>
|
||||
<profile>integration</profile>
|
||||
</profiles>
|
||||
<pomIncludes>
|
||||
<pomInclude>*/pom.xml</pomInclude>
|
||||
</pomIncludes>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>integration</id>
|
||||
<phase>install</phase>
|
||||
<goals>
|
||||
<goal>install</goal>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>integration</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!-- Invoke integration tests in the install phase, after the maven-plugin
|
||||
is available -->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-invoker-plugin</artifactId>
|
||||
<configuration>
|
||||
<settingsFile>src/it/settings.xml</settingsFile>
|
||||
<projectsDirectory>standalone</projectsDirectory>
|
||||
<skipInvocation>${skipTests}</skipInvocation>
|
||||
<streamLogs>true</streamLogs>
|
||||
<profiles>
|
||||
<profile>integration</profile>
|
||||
</profiles>
|
||||
<pomIncludes>
|
||||
<pomInclude>*/pom.xml</pomInclude>
|
||||
</pomIncludes>
|
||||
<goals>
|
||||
<goal>clean</goal>
|
||||
<goal>install</goal>
|
||||
</goals>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>integration</id>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -42,6 +42,7 @@ dependencies {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:39:05 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'http-client-dsl'
|
||||
rootProject.name = 'http-client-dsl-gradle'
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
stubrunner:
|
||||
work-offline: true
|
||||
stubs.ids: 'com.example:http-server-dsl-gradle:+:stubs:8080'
|
||||
@@ -49,6 +49,7 @@ dependencies {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
@@ -59,7 +60,7 @@ task wrapper(type: Wrapper) {
|
||||
}
|
||||
|
||||
clean.doFirst {
|
||||
delete "~/.m2/repository/com/example/"
|
||||
delete "~/.m2/repository/com/example/http-server-dsl-gradle"
|
||||
}
|
||||
|
||||
task resolveDependencies {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:38:58 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -97,12 +97,6 @@
|
||||
<fileset>
|
||||
<directory>target</directory>
|
||||
</fileset>
|
||||
<fileset>
|
||||
<directory>${env.HOME}/.m2/repository/com/example/</directory>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'http-server-dsl'
|
||||
rootProject.name = 'http-server-dsl-gradle'
|
||||
|
||||
@@ -43,6 +43,7 @@ dependencies {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:39:28 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'stream-sink'
|
||||
rootProject.name = 'stream-sink-gradle'
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
stubrunner:
|
||||
work-offline: true
|
||||
stubs.ids: 'com.example:stream-source-gradle'
|
||||
@@ -73,6 +73,7 @@ publishing {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
@@ -83,7 +84,7 @@ task wrapper(type: Wrapper) {
|
||||
}
|
||||
|
||||
clean.doFirst {
|
||||
delete "~/.m2/repository/com/example/"
|
||||
delete "~/.m2/repository/com/example/stream-source-gradle"
|
||||
}
|
||||
|
||||
task resolveDependencies {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:39:21 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -93,12 +93,6 @@
|
||||
<fileset>
|
||||
<directory>target</directory>
|
||||
</fileset>
|
||||
<fileset>
|
||||
<directory>${env.HOME}/.m2/repository/com/example/</directory>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'stream-source'
|
||||
rootProject.name = 'stream-source-gradle'
|
||||
|
||||
@@ -43,6 +43,7 @@ dependencies {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:39:49 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'http-client-restdocs'
|
||||
rootProject.name = 'http-client-restdocs-gradle'
|
||||
|
||||
@@ -49,6 +49,7 @@ dependencies {
|
||||
}
|
||||
|
||||
test {
|
||||
systemProperty 'spring.profiles.active', 'gradle'
|
||||
testLogging {
|
||||
exceptionFormat = 'full'
|
||||
}
|
||||
@@ -87,7 +88,7 @@ task copyClasses(type: Copy) {
|
||||
|
||||
clean.doFirst {
|
||||
delete 'target/snippets/stubs'
|
||||
delete "~/.m2/repository/com/example/"
|
||||
delete "~/.m2/repository/com/example/http-server-restdocs-gradle"
|
||||
}
|
||||
|
||||
task resolveDependencies {
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
org.gradle.daemon=false
|
||||
verifierVersion=1.0.0.BUILD-SNAPSHOT
|
||||
BOM_VERSION=Brixton.SR4
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
#Thu Jul 21 10:16:50 CEST 2016
|
||||
#Fri Aug 19 15:39:42 CEST 2016
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.0-bin.zip
|
||||
|
||||
@@ -80,6 +80,21 @@
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<configuration>
|
||||
<filesets>
|
||||
<fileset>
|
||||
<directory>build</directory>
|
||||
</fileset>
|
||||
<fileset>
|
||||
<directory>target</directory>
|
||||
</fileset>
|
||||
</filesets>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
|
||||
@@ -1 +1 @@
|
||||
rootProject.name = 'http-server-restdocs'
|
||||
rootProject.name = 'http-server-restdocs-gradle'
|
||||
|
||||
@@ -4,7 +4,7 @@ source common.sh || source scripts/common.sh || echo "No common.sh script found.
|
||||
|
||||
set -e
|
||||
|
||||
echo "Generating docs for Spring Cloud Contract version [$VERIFIER_VERSION]"
|
||||
echo "Generating docs for Spring Cloud Contract"
|
||||
|
||||
echo "Building main docs"
|
||||
./mvnw clean install -P docs -DskipTests=true --pl docs
|
||||
|
||||
Reference in New Issue
Block a user