Skip to content
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

Kotlin extensions are not involved in the final artifact #320

Closed
Peanuuutz opened this issue Oct 28, 2022 · 5 comments
Closed

Kotlin extensions are not involved in the final artifact #320

Peanuuutz opened this issue Oct 28, 2022 · 5 comments

Comments

@Peanuuutz
Copy link

I saw there are two files for kotlin extensions, but when I actually add joml to my project they don't show up. I'm guessing they are not properly set up because kotlin sources require some stand-alone process to build.

@httpdigest
Copy link
Member

Thanks for reporting it.
I am actually in the midst of migrating the build system from Maven to Gradle.
With it, I would then also use the Gradle Kotlin Plugin to build the Kotlin files under src/main/kotlin alongside the Java files for the JVM target.
Actually, those Kotlin files were never really tried/tested, which will change now. So, Kotlin usage should definitely improve a lot in the near future.

@httpdigest
Copy link
Member

@Peanuuutz there is now a new 1.10.6-SNAPSHOT on oss.sonatype.org. Can you try it with that new snapshot version?

@Peanuuutz
Copy link
Author

@Peanuuutz there is now a new 1.10.6-SNAPSHOT on oss.sonatype.org. Can you try it with that new snapshot version?

Can confirm it's included. 😄

@Peanuuutz
Copy link
Author

Also this feature would be nice: componentX() function to vector types like the following:

operator fun Vector2fc.component1(): Float = x()

operator fun Vector2fc.component2(): Float = y()

So that users can do:

val (x, y) = vector

@httpdigest
Copy link
Member

I'd gladly accept a pull request from you if you want to make changes to the Kotlin files. I am not that familiar with Kotlin or what's even possible here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants