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

Use Gradle jdk to run MOE build #8

Merged
merged 13 commits into from
Jul 23, 2022

Conversation

Noisyfox
Copy link
Member

This uses Gradle JDK to execute build commands, so we don't need to mess around with the MOE SDK. This is particularly useful in Android Studio when you have both Android and iOS module in a single project, as the Android Studio's module settings dialog is a minified version that does not allow you to modify module JDK settings.

@Noisyfox
Copy link
Member Author

@Berstanio Could you give this a try and see if this solves the "Module SDK not configured or it's not a valid JDK" issue?

@Noisyfox Noisyfox changed the title Gradle jdk Use Gradle jdk to run MOE build Jul 18, 2022
@Berstanio
Copy link
Contributor

#7 already fixed the issue for me. But I will check this changes out too

@Noisyfox
Copy link
Member Author

Noisyfox commented Jul 18, 2022

FYI this will break the plugin with MOE 2.0 though because it won't set the GraalVM as the module SDK. I'll try to figure out how to put #6 into this.

Currently this update will force setting the module SDK to MOE everything you resync the gradle project. This need to be disabled for MOE 2.x to allow user to change the module SDK.

@Berstanio
Copy link
Contributor

Could you give this a try and see if this solves the "Module SDK not configured or it's not a valid JDK" issue?

The changes work fine for me!

Copy link
Contributor

@Berstanio Berstanio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works good for me!

* commit '87d220fbcc52dab8517e67d67520658e1cb6a2a4':
  Set graalvm as sdk when possible

# Conflicts:
#	src/main/java/org/moe/idea/sdk/MOESdkType.java
#	src/main/kotlin/org/moe/idea/model/impl/MOESdkPropertiesImpl.kt
@Noisyfox Noisyfox added this to In progress in MOE Jul 23, 2022
@Noisyfox Noisyfox merged commit 9b6eb73 into multi-os-engine:moe-master Jul 23, 2022
@Noisyfox Noisyfox deleted the gradle-jdk branch July 23, 2022 09:24
@Noisyfox Noisyfox moved this from In progress to Done in MOE Jul 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
MOE
Done
2 participants