{"id":16345024,"url":"https://github.com/ericdallo/clj4intellij","last_synced_at":"2025-10-04T12:53:38.148Z","repository":{"id":193347673,"uuid":"688618388","full_name":"ericdallo/clj4intellij","owner":"ericdallo","description":"Library for develop IntelliJ plugins in Clojure","archived":false,"fork":false,"pushed_at":"2025-04-09T15:05:22.000Z","size":177,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T16:24:02.182Z","etag":null,"topics":["clojure","intellij","plugin"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericdallo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T18:20:13.000Z","updated_at":"2025-04-09T15:05:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"56a7edc4-31fb-47ce-b5c9-fbe29844d6e3","html_url":"https://github.com/ericdallo/clj4intellij","commit_stats":null,"previous_names":["ericdallo/clj4intellij"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ericdallo/clj4intellij","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fclj4intellij","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fclj4intellij/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fclj4intellij/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fclj4intellij/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericdallo","download_url":"https://codeload.github.com/ericdallo/clj4intellij/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericdallo%2Fclj4intellij/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278315198,"owners_count":25966775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","intellij","plugin"],"created_at":"2024-10-11T00:29:41.979Z","updated_at":"2025-10-04T12:53:38.142Z","avatar_url":"https://github.com/ericdallo.png","language":"Clojure","funding_links":["https://github.com/sponsors/ericdallo"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"[![Clojars Project](https://img.shields.io/clojars/v/com.github.ericdallo/clj4intellij.svg)](https://clojars.org/com.github.ericdallo/clj4intellij)\n\n# clj4intellij\n\nLibrary for create IntelliJ plugins with Clojure.\n\n## How to use it?\n\nConfigure [clojurephant](https://clojurephant.dev) first:\n\n`build.gradle.kts`\n```kotlin\nplugins {\n    ...\n    id(\"dev.clojurephant.clojure\") version \"VERSION\"\n}\nclojure.builds.named(\"main\") {\n    classpath.from(sourceSets.main.get().runtimeClasspath.asPath)\n    checkAll()\n    aotAll()\n    reflection.set(\"fail\")\n}\n```\n\nAdd clj4intellij as dependency:\n\n`build.gradle.kts`\n```kotlin\nrepositories {\n    ...\n    maven {\n        name = \"Clojars\"\n        url = uri(\"https://repo.clojars.org\")\n    }\n}\ndependencies {\n    ...\n    implementation (\"com.github.ericdallo:clj4intellij:VERSION\")\n}\n```\n\nAdd an application listener that will change the classloader on IntelliJ startup to load your plugin Clojure code:\n\n`src/main/resources/META-INF/plugin.xml`\n```xml\n\u003capplicationListeners\u003e\n    \u003clistener topic=\"com.intellij.ide.AppLifecycleListener\"\n              class=\"com.github.ericdallo.clj4intellij.listener.ClojureClassLoaderListener\"/\u003e\n\u003c/applicationListeners\u003e\n```\n\nNow you can create clojure namespaces in your sourcepath (ex `src/main/clojure`), use clj4intellij helpers to create extensions like `def-extension` or implement yourself extensions using Clojure's `gen-class`.\n\n### Repl support\n\nAdd this extension and after startup a random port will be logged in IntelliJ's log, then you can connect from any editor to that port to development:\n\n`src/main/resources/META-INF/plugin.xml`\n```xml\n\u003cextensions defaultExtensionNs=\"com.intellij\"\u003e\n    \u003cpostStartupActivity implementation=\"com.github.ericdallo.clj4intellij.extension.NREPLStartup\"/\u003e\n\u003c/extensions\u003e\n```\n\nYou can specify a port to always be used in the clj4intellij config file:\n\n`src/main/resources/META-INF/clj4intellij.edn`\n```xml\n{:nrepl {:port 9876}}\n```\n\n### Logging\n\nThere is the `com.github.ericdallo.clj4intellij.logger` ns which can be used to log messages to intelliJ's log via Clojure.\n\n## How it works?\n\nThis plugin has classes required to make possible code in Clojure a Intellij plugin changing the classloader at IntelliJ's startup.\n\nAlso contains useful functions for a more Clojure idiomatic development avoid the directly use of java or Intellij API.\n\n\u003e For more information about plugin development, read the [IntelliJ Plugin development](./doc/intellij-plugin-development.md) guide.\n\n## Useful namespaces\n\n- `com.github.ericdallo.clj4intellij.app-manager` to handle `Application` calls.\n- `com.github.ericdallo.clj4intellij.action` to register actions dynamically.\n\n## Plugins using clj4intellij\n\n- [clojure-lsp-intellij](https://github.com/clojure-lsp/clojure-lsp-intellij)\n- [clojure-repl-intellij](https://github.com/afucher/clojure-repl-intellij)\n\n# Support \n\nConsider support the work of this project [here](https://github.com/sponsors/ericdallo) ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdallo%2Fclj4intellij","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericdallo%2Fclj4intellij","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericdallo%2Fclj4intellij/lists"}