plugins { id 'org.springframework.boot' version '2.3.3.RELEASE' id 'io.spring.dependency-management' version '1.0.9.RELEASE' id 'java' } group = 'org.jointheleague.level7' version = '0.0.1-SNAPSHOT' sourceCompatibility = '11' repositories { jcenter() } dependencies { implementation 'org.springframework.boot:spring-boot-starter-webflux' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'io.springfox:springfox-swagger2:2.9.2' implementation 'io.springfox:springfox-swagger-ui:2.9.2' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } testImplementation 'io.projectreactor:reactor-test' } test { useJUnitPlatform() } sourceSets { intTest { compileClasspath += sourceSets.main.output runtimeClasspath += sourceSets.main.output } } configurations { intTestImplementation.extendsFrom testImplementation intTestRunTimeOnly.extendsFrom runtimeOnly } task intTest(type: Test) { useJUnitPlatform() description = 'Runs the integration tests.' group = 'verification' testClassesDirs = sourceSets.intTest.output.classesDirs classpath = sourceSets.intTest.runtimeClasspath shouldRunAfter test } check.dependsOn intTest