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

feat: prepare 0.24.0 release #78

Merged
merged 12 commits into from
Jan 19, 2023
Merged

feat: prepare 0.24.0 release #78

merged 12 commits into from
Jan 19, 2023

Conversation

linux-china
Copy link
Contributor

  • 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

@linux-china linux-china merged commit a1c6ece into jbangdev:main Jan 19, 2023
@@ -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,
Copy link
Contributor

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?

Copy link
Contributor Author

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()) {
Copy link
Contributor

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.

Copy link
Contributor Author

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

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

Successfully merging this pull request may close these issues.

2 participants