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

Fix uberjar generation #134

Merged
merged 2 commits into from
May 5, 2024
Merged

Fix uberjar generation #134

merged 2 commits into from
May 5, 2024

Conversation

eerohele
Copy link
Contributor

@eerohele eerohele commented May 5, 2024

After these changes, lein uberjar succeeds on my machine, and double-clicking target/clooj-0.5-standalone.jar opens Clooj.

To make it easy for folks to run Clooj, I think we can initially just create the uberjar locally, make a GitHub release manually, and attach the uberjar to the release.

Prior to this, making an uberjar with lein uberjar would fail with:

    Syntax error macroexpanding at (core.clj:95:19).
    Execution error (IllegalArgumentException) at clooj.utils/get-os (utils.clj:114).
    No matching method getProperty found taking 1 args for class java.lang.Class
It doesn't *seem* to be necessary any longer. Also, once we've removed it, we no longer need to use --add-exports java.desktop/com.apple.eawt=ALL-UNNAMED when running the uberjar on macOS.
@eerohele eerohele requested a review from NoahTheDuke as a code owner May 5, 2024 17:52
Copy link
Contributor

@NoahTheDuke NoahTheDuke left a comment

Choose a reason for hiding this comment

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

Yeah, I think your release idea is perfectly fine.

@@ -111,7 +111,7 @@
;; identify OS

(defn get-os []
(string/lower-case (.getProperty System "os.name")))
(string/lower-case (System/getProperty "os.name")))
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!

@eerohele eerohele merged commit 56d29c8 into clj-commons:master May 5, 2024
@eerohele eerohele deleted the uberjar branch May 5, 2024 18:06
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