Skip to content

Commit c40af11

Browse files
committed
build(model-api-gen): removed the gradle functionalTest
There is a separate project "model-api-gen-gradle-test" that does the same test. The gradle functionalTest is hard to debug, because all the generated files are deleted at the end of the test run. That's why this separate test project was added.
1 parent f90ed6f commit c40af11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

model-api-gen-gradle/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,14 @@ gradlePlugin {
3131
implementationClass = "org.modelix.metamodel.gradle.MetaModelGradlePlugin"
3232
}
3333
}
34+
35+
val writeVersionFile by tasks.registering {
36+
val propertiesFile = projectDir.resolve("src/main/resources/modelix.core.version.properties")
37+
propertiesFile.parentFile.mkdirs()
38+
propertiesFile.writeText("""
39+
modelix.core.version=$version
40+
""".trimIndent())
41+
}
42+
tasks.named("processResources") {
43+
dependsOn(writeVersionFile)
44+
}

0 commit comments

Comments
 (0)