美文网首页
gradle 复制依赖jar文件到指定目录

gradle 复制依赖jar文件到指定目录

作者: sjj_dot | 来源:发表于2022-04-06 21:52 被阅读0次

    在项目 build.gradle 下添加以下配置

    configurations {
        localDeps
    }
    
    dependencies {
    localDeps 'com.github.SJJ-dot:ALOG:1.2.9'
    implementation configurations.localDeps
    }
    
    task copyToLib(type: Copy) {
        configurations.localDeps.setCanBeResolved(true)
        from configurations.localDeps
        into "$buildDir/output/lib"
    }
    

    执行 copyToLib 任务

    相关文章

      网友评论

          本文标题:gradle 复制依赖jar文件到指定目录

          本文链接:https://www.haomeiwen.com/subject/aspdsrtx.html