简体   繁体   中英

How to use a library's code in IntelliJ instead of the jar file

I'm using gradle for my build tool. I have a project that uses a jar file and I have the jar file imported into my gradle for my project which works great when doing build and deploy.

Problem is that I'm developing the jar file along with the project. When I change the library code, I have to build and move the jar file into my project. PITA.

Instead, I'd like to set up my IntelliJ environment so it uses the module's code first and then looks at the jar file later/never.

It seems like something that IntelliJ should be set up to do, but searching turned up nothing and I can't seem to find anything banging around in the IDE.

Anyone tackle this?

Currently such setup is not supported for Gradle project. There is however a hidden option that you may try to set:

external.system.substitute.library.dependencies = true

via "Help | Edit Custom Properties" and restart.

The corresponding request for this is https://youtrack.jetbrains.com/issue/IDEA-134885

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM