kotlin - Gradle 子模块 compileOnly 函数不存在
问题描述
我的应用程序 build.gradle.kts
我的根 settings.gradle.kts
我的根 build.gradle.kts
Build file '/home/gutyerrez/Documents/Hyren Network/core/build.gradle.kts' line: 1
Plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.4.0'] was not found in any of the following sources:
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
解决方案
像那样:
subprojects {
repositories {
mavenCentral()
}
apply {
plugin("org.springframework.boot")
plugin("io.spring.dependency-management")
plugin("org.jetbrains.kotlin.jvm")
}
}
推荐阅读
- python - Networkx is_negatively_weighted 为假,但使用 Dijkstra 返回('发现矛盾路径:','负权重?')
- amazon-web-services - VSCode 中是否有可以恢复文件的打开 ssh 会话文件的本地副本?
- python - 如何发送表单数据的标题
- mysql - 在 MySQL 脚本中设置和使用变量
- java - 使用 OPENCMIS 运行 MVN INSTALL
- events - 如何设计发送用户创建的实时警报的通知系统
- python - python中的列表有困难
- oracle - Oracle APEX 自动化计划
- php - Woocommerce 致命错误:未捕获的错误:调用字符串上的成员函数 get_type()
- ssl - why i get the error "backend - 404 error" when trying to deploy tls ingress in kubernetes with no errors on events