Gradle中的DSL,Groovy & Kotlin 引用arr库新写法

build.gradle 文件这样写

api fileTree(include: ['*.aar'], dir: 'libs')

api fileTree(include: ['*.aar'], dir: 'libs/gromore') //gromore为lib子目录

api fileTree(include: ['*.aar'], dir: 'libs/gromore/baidu')

api fileTree(include: ['*.aar'], dir: 'libs/gromore/ks')

api fileTree(include: ['*.aar'], dir: 'libs/gromore/pangle')

build.gradle.kts 文件这样写

// api(fileTree(mapOf("include" to listOf("*.aar"), "dir" to "libs")))//测试工具

// api(fileTree(mapOf("include" to listOf("*.aar"), "dir" to "libs/gromore")))

// implementation(fileTree(mapOf("include" to listOf("*.jar", "*.aar"), "dir" to "libs/gromore/baidu")))

// implementation(fileTree(mapOf("include" to listOf("*.jar", "*.aar"), "dir" to "libs/gromore/ks")))

// api(fileTree(mapOf("include" to listOf("*.jar", "*.aar"), "dir" to "libs/gromore/pangle")))

相关推荐
风无雨15 分钟前
GO启动一个视频下载接口 前端可以边下边放
前端·golang·音视频
咖丨喱41 分钟前
【Action帧简要分析】
服务器·数据库·asp.net
三体世界1 小时前
TCP传输控制层协议深入理解
linux·服务器·开发语言·网络·c++·网络协议·tcp/ip
LuDvei1 小时前
CH9121T电路及配置详解
服务器·嵌入式硬件·物联网·网络协议·tcp/ip·网络安全·信号处理
zkmall1 小时前
企业电商平台搭建:ZKmall开源商城服务器部署与容灾方案
运维·服务器·开源
aha-凯心1 小时前
前端学习 vben 之 axios interceptors
前端·学习
泷羽Sec-静安1 小时前
OSCP官方靶场-Solstice WP
服务器·网络·数据库
熊出没1 小时前
Vue前端导出页面为PDF文件
前端·vue.js·pdf
VOLUN1 小时前
Vue3项目中优雅封装API基础接口:getBaseApi设计解析
前端·vue.js·api