Split reactive and non-reactive integration tests into separate subprojects.
This commit is contained in:
@@ -43,8 +43,7 @@ dependencies {
|
||||
compile project(":spring-credhub-starter")
|
||||
compile("org.springframework.boot:spring-boot-starter")
|
||||
|
||||
compile("org.springframework.boot:spring-boot-starter-webflux")
|
||||
compile("io.projectreactor.netty:reactor-netty")
|
||||
compile("org.springframework.boot:spring-boot-starter-web")
|
||||
|
||||
compile("org.springframework.security:spring-security-config")
|
||||
compile("org.springframework.security:spring-security-oauth2-client")
|
||||
@@ -60,7 +59,6 @@ dependencies {
|
||||
}
|
||||
|
||||
testCompile("org.springframework.boot:spring-boot-starter-test")
|
||||
testCompile("io.projectreactor:reactor-test")
|
||||
testCompile("org.assertj:assertj-core:${assertJVersion}")
|
||||
}
|
||||
|
||||
|
||||
71
spring-credhub-reactive-integration-tests/build.gradle
Normal file
71
spring-credhub-reactive-integration-tests/build.gradle
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2016-2017 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
|
||||
*
|
||||
* http://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.
|
||||
*/
|
||||
|
||||
description = 'Spring CredHub Reactive Integration Tests'
|
||||
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
|
||||
classpath 'io.spring.gradle:spring-io-plugin:0.0.8.RELEASE'
|
||||
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://repo.spring.io/plugins-release" }
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'eclipse'
|
||||
|
||||
apply plugin: 'propdeps'
|
||||
apply plugin: 'propdeps-maven'
|
||||
apply plugin: 'propdeps-idea'
|
||||
apply plugin: 'propdeps-eclipse'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
dependencies {
|
||||
compile project(":spring-credhub-starter")
|
||||
compile("org.springframework.boot:spring-boot-starter")
|
||||
|
||||
compile("org.springframework.boot:spring-boot-starter-webflux")
|
||||
compile("io.projectreactor.netty:reactor-netty")
|
||||
|
||||
compile("org.springframework.security:spring-security-config")
|
||||
compile("org.springframework.security:spring-security-oauth2-client")
|
||||
|
||||
testCompile("org.springframework.boot:spring-boot-starter-test")
|
||||
testCompile("io.projectreactor:reactor-test")
|
||||
testCompile("org.assertj:assertj-core:${assertJVersion}")
|
||||
}
|
||||
|
||||
test {
|
||||
onlyIf {
|
||||
project.hasProperty("integrationTests")
|
||||
}
|
||||
}
|
||||
|
||||
bootJar {
|
||||
enabled = false
|
||||
}
|
||||
|
||||
configurations.archives.artifacts.clear()
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2017-2018 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
|
||||
*
|
||||
* http://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.
|
||||
*/
|
||||
|
||||
package org.springframework.credhub.integration;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class TestApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(TestApplication.class, args);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user