-
Notifications
You must be signed in to change notification settings - Fork 1.1k
DATAMONGO-1689 Add Kotlin extensions for [Reactive]MongoOperations. #463
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
Conversation
@@ -230,13 +231,93 @@ | |||
<artifactId>spring-webmvc</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> |
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.
Should these be optional dependencies?
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.
Indeed, I will change that.
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.
Updated
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<executions> |
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.
Can you elaborate on the need for this quite significant change in the compile settings?
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.
It seems to be the recommanded way to handle Kotlin + Java Maven builds.
JetBrains explantation is the following:
To compile mixed code applications Kotlin compiler should be invoked before Java compiler. In maven terms that means kotlin-maven-plugin should be run before maven-compiler-plugin using the following method, making sure that the kotlin plugin is above the maven-compiler-plugin in your pom.xml file.
4dddb66
to
59b2ab1
Compare
Another thing we could do is to provide extensions with alternative function names to We should also update the |
I will send an updated version of this PR tomorrow with the following changes:
Could we consider inclusion in master when I will have pushed this updated PR? |
@sdeleuze I already started working on integrating Kotlin in this branch (https://github.com/spring-projects/spring-data-mongodb/tree/issue/DATAMONGO-1689). |
Ok thanks I will send the update against your branch and will answer on the spring-data-build side. |
Given the short amount of time before the M4 release tomorrow, I'd love to keep the build changes in this module for now. @sdeleuze do you think you can get your changes in tonight or early tomorrow morning CET? |
We now offer dedicated Kotlin extensions for MongoOperations and ReactiveMongoOperations.
Remove Kotlin specifics from pom.xml as those are managed in spring-data-build. Additionally format code, update license header, update JavaDoc and add issue reference to tests.
59b2ab1
to
e5a8548
Compare
Bring back Maven Kotlin configuration for now + documentation fixes.
e5a8548
to
781be77
Compare
781be77
to
969b53c
Compare
We now offer dedicated Kotlin extensions for MongoOperations and ReactiveMongoOperations. Original pull request: #463.
Additionally format code, update license header, update JavaDoc and add issue reference to tests. Original pull request: #463.
Improve Maven Kotlin configuration for now + documentation fixes. Original pull request: #463.
Original pull request: #463.
Original pull request: #463.
Original pull request: #463.
No description provided.