Added antlr task dependencies.

This commit is contained in:
JesseBrault0709 2024-05-24 09:45:10 +02:00
parent 58d7641ece
commit f0b133bb22

View File

@ -90,6 +90,7 @@ groowtAntlr {
} }
tasks.named('generateWebViewComponentsLexerBase', GroowtAntlrExecTask) { task -> tasks.named('generateWebViewComponentsLexerBase', GroowtAntlrExecTask) { task ->
dependsOn('generateLexerFragments')
doLast { doLast {
def pattern = ~/public class WebViewComponentsLexerBase(.*)/ def pattern = ~/public class WebViewComponentsLexerBase(.*)/
def lexerSource = task.resolveOutputFile 'WebViewComponentsLexerBase.java' def lexerSource = task.resolveOutputFile 'WebViewComponentsLexerBase.java'
@ -105,6 +106,10 @@ tasks.named('generateWebViewComponentsLexerBase', GroowtAntlrExecTask) { task ->
} }
} }
tasks.named('generateWebViewComponentsParser', GroowtAntlrExecTask) {
dependsOn('generateWebViewComponentsLexerBase')
}
tasks.named({ String name -> tasks.named({ String name ->
name in ['compileJava', 'compileGroovy', 'compileKotlin'] name in ['compileJava', 'compileGroovy', 'compileKotlin']
} as Spec<String>).configureEach { } as Spec<String>).configureEach {