How do I get leiningen so that I can call my project what I want?

I am trying to create a new project with leiningen, but I keep getting the message:

"Capitalized project names are not recommended and will be rejected by repositories such as Clojars and Central. If you really cannot use the lower case name, set LEIN_BREAK_CONVENTION and try again."

I run it in powershell, so I tried to set this environment variable to "true" or 1, but not to cubes. I do not understand how I get leiningen to let me call my project what I want.

+4
source share
2 answers

You can set LEIN_BREAK_CONVENTION to any value, including false or nil.

Using the command line on Windows:

Run: set LEIN_BREAK_CONVENTION=true , and then create your project.

Using PowerShell:

Run: $env:LEIN_BREAK_CONVENTION=true , and then create a project with whatever name you want.

+4
source

You will have a similar problem if your project name ends in jure and Leiningen says to use the LEIN_IRONIC_JURE environment variable.

There will be no problems with Clojars, etc.

I have not tried the LEIN_IRONIC_JURE trick, so I'm not sure if it works. Instead, after creating a project called dud, I looked at the created directories and changed all the links to the name I wanted.

0
source

Source: https://habr.com/ru/post/1479467/


All Articles