Skip to content

Commit 41a6216

Browse files
committed
clean up build
1 parent 2c96481 commit 41a6216

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

openapi-processor-core/build.gradle.kts

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,14 @@ versions {
2020
))
2121
}
2222

23-
sourceSets {
24-
main {
25-
java {
26-
srcDir(tasks.named("generateGrammarSource"))
27-
}
28-
}
29-
30-
test {
31-
java {
32-
srcDir(tasks.named("generateTestGrammarSource"))
33-
}
34-
// groovy {
35-
// srcDir(tasks.named("compileKotlin"))
36-
// srcDir(tasks.named("compileTestKotlin"))
37-
// }
38-
}
39-
40-
testInt {
41-
java {
42-
srcDir(tasks.named("generateTestIntGrammarSource"))
43-
}
44-
}
45-
}
46-
4723
tasks.compileTestGroovy {
4824
classpath += sourceSets.main.get().compileClasspath
4925
classpath += files(tasks.compileKotlin.get().destinationDirectory)
5026
classpath += files(tasks.compileTestKotlin.get().destinationDirectory)
5127
}
5228

5329
tasks.named<AntlrTask>("generateGrammarSource") {
54-
val antlrPkg = "io.openapiprocessor.core.processor.mapping.v2.parser.antlr"
55-
arguments = arguments + listOf("-package", antlrPkg)
56-
outputDirectory = layout.buildDirectory.dir("antlr/${antlrPkg.replace('.', '/')}").get().asFile
30+
packageName = "io.openapiprocessor.core.processor.mapping.v2.parser.antlr"
5731
}
5832

5933
repositories {

0 commit comments

Comments
 (0)