Skip to content

Commit 15f6e83

Browse files
author
gdy
committed
tests execution is excluded from gradle build
1 parent df7add1 commit 15f6e83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ repositories {
1313
mavenCentral()
1414
}
1515

16+
test.doFirst {
17+
if (gradle.taskGraph.getAllTasks().contains(build)) {
18+
throw new StopExecutionException()
19+
}
20+
}
21+
1622
dependencies {
1723
testCompile 'junit:junit:4.12'
1824
testCompile 'org.mockito:mockito-core:2.0.62-beta'

0 commit comments

Comments
 (0)