-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kotlin
protoc
built-in when Java or Kotlin are enabled in a project
#87
Conversation
... together with Spine deps.
... together with Spine deps.
The version of ProtoData is taken from the corresponding dependency object in `buildSrc`
@@ -70,6 +70,9 @@ public final class UuidJavaRenderer extends JavaRenderer { | |||
*/ | |||
@Override | |||
protected void render(SourceFileSet sources) { | |||
if (!sources.sourceRoot.endsWith("java")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armiol, this line breaks the build sayin that the sourceRoot
property is private
. It was indeed until I opened it.
It looks like indication that we test against the "dev" version, and not the one under the development. I've tried to force versions in the root build, but it didn't give much. I still get the "private" property error.
Let's discuss when time permits.
... until #88 is resolved.
kotlin
protoc
built-in when Java or Kotlin are enabled in a project
gradle-plugin/src/main/kotlin/io/spine/protodata/gradle/plugin/Plugin.kt
Outdated
Show resolved
Hide resolved
...protodata-extension/src/main/java/io/spine/protodata/test/annotation/AnnotationRenderer.java
Show resolved
Hide resolved
... for the case of opening `tests` as a project in IDEA.
This PR teached ProtoData Gradle Plugin to turn
kotlin
protoc
built-in when Java or Kotlin enabled in a project.When working on this PR the issue of incompatibility with Android projects was discovered. We need to address it before the stable release.
Other notable changes:
Spine
object.SourceFileSet
is passed toJavaPrinter
#90).sourceRoot
andtargetRoot
were opened inSourceFileSet
. Still, it did not allow to use these properties in the integration tests because tests seem to use the code embedded intomc-java
rather than that defined in the build file.SourceFileSet
also got propertiessize
andisEmpty
. It was possible to obtain these values viacount
extension ofIterable
, but doing it directly is a bit more efficient.