Answer the question
In order to leave comments, you need to log in
How to publish your library in a local repository in Gradle and then connect it from this repository in another application?
Hello. Got on a project consisting of several modules. Some of the modules are collected in the API, and connected in other modules via gradle. I made some changes to the apish module, and now I need to publish a new version of it to the local repository, and then include it in another module. So far I haven't been able to do it. I am using IntelliJ IDEA and built-in gradle. I tried publish, publishToMavenLocal and publishMavenJavaPublicationToMavenLocal tasks in it. And it doesn't help. I went into the .m2 folder and looked at my library there - everything is there (both versions). Gradle cache contains only the old version. If I write a new version in the main project in build.gradle, then it underlines this line in red, and the project is not built. What to do? What is the easiest way to do this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question