diff --git a/gradle/scripts/license.gradle b/gradle/scripts/license.gradle index 80343d16ee..a1810077ca 100644 --- a/gradle/scripts/license.gradle +++ b/gradle/scripts/license.gradle @@ -14,4 +14,15 @@ subprojects { excludes(["**/*.json", "**/*.avsc", "**/*.avro", "**/*.conf", "**/*.yaml", "**/*.xml"]) excludes(["**/*.txt", "**/*.csv", "**/*.md"]) } + + plugins.withType(PlayPlugin) { + // Manually define a dummy sourceSet for license checking + sourceSets { + license { + java { + srcDirs = ['app', 'test'] + } + } + } + } } diff --git a/gradle/scripts/play.gradle b/gradle/scripts/play.gradle index 0cb781606b..858fcf105d 100644 --- a/gradle/scripts/play.gradle +++ b/gradle/scripts/play.gradle @@ -4,15 +4,6 @@ tasks.withType(PlayRun) { httpPort = project.ext.httpPort } -// Manually define a sourceSet for license checking -sourceSets { - license { - java { - srcDirs = ['app', 'test'] - } - } -} - model { components { play {