Gradle: Make a 3rd party jar available to local gradle repository

前端 未结 6 1679
我在风中等你
我在风中等你 2020-12-04 17:44

currently, I\'m testing Gradle as an alternative to Maven. In my projects, there are some 3rd party jars, which aren\'t available in any (Maven) repositories. My problem is

6条回答
  •  忘掉有多难
    2020-12-04 18:13

    Maybe I'm missing something from my reading of your question, assuming your gradle repo is of the flatDir type, you should be able to copy the files there in the form myjar-1.0.jar and resolve them as myjar of version 1.0.

    Not sure why should it be necessary for Gradle to run maven in order to access a local maven repository. You can just define the maven repos and it should resolve dependencies. You can use gradle upload to push the jars local or remote maven repos if you need to. In that case, it will execute maven.

提交回复
热议问题