vojtechhabarta / typescript-generator

Generates TypeScript from Java - JSON declarations, REST service client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrectly depends on compiling tests

pkubowicz opened this issue · comments

Current logic adds dependency on all tasks that:

task.getName().startsWith("compile") && !task.getName().startsWith("compileTest")

This is incorrect, as you may have more types of tests than standard ones:
https://blog.gradle.org/introducing-test-suites

You can have compileIntegrationTest and many more.

The correct logic should be:

&& !task.getName().contains("Test")