本帖最后由 1069418097 于 2023-1-12 14:54 编辑
我要用到hutool这个类库, 然后我在需要用的类上面写上注解@RuntimeDependency("cn.hutool:hutool-all:5.8.11")
但是不能编译 编译器找不到依赖
又在build.gradle.kts这个位置写上这一行dependencies {
implementation("cn.hutool:hutool-all:5.8.11")
代码成功运行但是总感觉哪不对, 官方文档真的实在找不到相关的内容引入依赖到底要这么引入呢?
我要用到hutool这个类库, 然后我在需要用的类上面写上注解@RuntimeDependency("cn.hutool:hutool-all:5.8.11")
但是不能编译 编译器找不到依赖
又在build.gradle.kts这个位置写上这一行dependencies {
implementation("cn.hutool:hutool-all:5.8.11")
代码成功运行但是总感觉哪不对, 官方文档真的实在找不到相关的内容引入依赖到底要这么引入呢?
taboo("cn.hutool:hutool-all:5.8.11")
官方文档在 https://docs.tabooproject.org/plugin/module/common/env.html
在 build.gradle 使用 complieOnly 引入会被动态下载的依赖
即 complieOnly("cn.hutool:hutool-all:5.8.11")
在 build.gradle 使用 complieOnly 引入会被动态下载的依赖
即 complieOnly("cn.hutool:hutool-all:5.8.11")