插件如何依赖第三方jar
ShaoLongFei opened this issue · comments
ShaoLongFei commented
我有一些第三方的 jar 需要依赖,我尝试使用 buildPlugin、shadowJar 等多种方式打 jar 皆未成功,有没有好一点的方式?
微莹·纤绫 commented
Paste content of your build.gradle(.kts)
here
ShaoLongFei commented
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.30'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.4.30'
id 'net.mamoe.mirai-console' version '2.6.5'
}
group = 'com.liuyue'
version = '1.0'
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
dependencies {
compile files('libs/sqlite-jdbc-3.7.2.jar')
}
cssxsh commented
compile files
的 compile
改为 implementation
,
还有就是为啥使用引用Jar文件的方式引用库?而不是 implementation 'org.xerial:sqlite-jdbc:${version}'
?