Maven/Gradle – exclude tests

Excldue tests in Maven, example:

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>com/dimitar/reactive/springreactive/fluxandmono/*.java</exclude>
						<exclude>com/dimitar/reactive/springreactive/handler/*.java</exclude>
						<exclude>com/dimitar/reactive/springreactive/controller/*.java</exclude>
					</excludes>
				</configuration>
			</plugin>
			...
		</plugins>
	</build>

Maven documentation.

Exclude tests in Gradle, example:

test {
	exclude 'com/dimitar/reactive/springreactive/fluxandmono/**'
}

Gradle documentation.