gradle-kotlin-dsl - How do you add local .jar file dependency to build.gradle.kt file?
问题描述
I have gone through similar questions regarding build.gradle and I have looked through the Gradle Kotlin Primer and I don't see how to add a .jar file to a build.gradle.kt file. I am trying to avoid using mavenLocal()
解决方案
如果您正在寻找相当于
implementation fileTree(dir: 'libs', include: ['*.jar'])
那将是:
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
推荐阅读
- php - 我正在登录条纹,但付款选项中没有显示付款
- android - 错误:找不到符号导入 android.support.v7.widget.ListViewCompat;
- opengl - DirectX 和 OpenGL 是用哪种编程语言编写的?
- react-native - 我需要关于 ReactNative App 的多客户部署的建议
- reactjs - 在 MenuList 中反应选择自定义输入
- ruby - 如何控制线程之间的运行顺序?
- sql-server - 计算单个表中其他行之后的行,均受 where 子句限制
- android - 如何选择一段时间而不是特定时间 ReactNative
- node.js - 在 AWS Lamba / Node 函数中创建 URL Slug
- javascript - 如何使用/引用在同一个 json 模式中生成的字段值