How to add local .jar file dependency to build.gradle file?

前端 未结 17 2063
攒了一身酷
攒了一身酷 2020-11-21 23:23

So I have tried to add my local .jar file dependency to my build.gradle file:

apply plugin: \'java\'

sourceSets {
    main {
        java {
            srcD         


        
17条回答
  •  死守一世寂寞
    2020-11-21 23:30

    Be careful if you are using continuous integration, you must add your libraries in the same path on your build server.

    For this reason, I'd rather add jar to the local repository and, of course, do the same on the build server.

提交回复
热议问题