-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: prepare 0.24.0 release #78
Conversation
linux-china
commented
Jan 18, 2023
- Added: enable download sources
- Added: attach sources for jbang lib when syncing dependencies
- Added: NATIVE_OPTIONS support
- Fixed: support for quoted arguments in the build configuration
@@ -375,7 +374,10 @@ class SyncDependenciesAction : AnAction() { | |||
} | |||
// add jbang dependencies | |||
if (newDependencies.isNotEmpty()) { | |||
ModuleRootModificationUtil.addModuleLibrary(module, libName, newDependencies.map { "jar://${it}!/" }.toList(), listOf()) | |||
ModuleRootModificationUtil.addModuleLibrary(module, libName, |
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.
What happens if the sources jar is not there?
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.
No worry, and IDEA will ignore it if source file does not exist.
@@ -26,6 +26,8 @@ fun getJBangCmdAbsolutionPath(): String { | |||
return if (SystemInfo.isWindows) { | |||
if (File(System.getenv("JBANG_HOME") ?: "", "bin/jbang.cmd").exists()) { | |||
File(System.getenv("JBANG_HOME") ?: "", "bin/jbang.cmd").absolutePath | |||
} else if (File(userHome, ".sdkman/candidates/jbang/current/bin/jbang.cmd").exists()) { |
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.
Not following why sdkman should get special treatment - everywhere else we check JBANG_HOME, PATH and ~/.jbang/bin
With this change users can't reliably know which jbang gets used.
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.
Got. I will remove it in version 0.25.0