SpineEventEngine / validation

Apache License 2.0
2 stars 0 forks source link

Kotlin compiler does not see generated proto DSL under `vanilla` module #69

Closed alexander-yevsyukov closed 1 year ago

alexander-yevsyukov commented 1 year ago

We got the following error (in #68):

> Task :proto:configuration:generateTestRejections
e: /home/runner/work/validation/validation/java-tests/vanilla/src/test/kotlin/io/spine/validation/java/DistinctConstraintSpec.kt: (35, 26): Unresolved reference: constraintViolation

> Task :java-tests:vanilla:compileTestKotlin FAILED
e: /home/runner/work/validation/validation/java-tests/vanilla/src/test/kotlin/io/spine/validation/java/DistinctConstraintSpec.kt: (52, 24): Unresolved reference: constraintViolation

There is dependency on java-runtime that contains this declarations. And local builds under macOS pass normally. We do want to have Kotlin DSL in tests. And this looks like an issue either in McJava or, which is more likely, in ProtoData.