在 build.gradle.kts 添加 阿里云仓库

在 build.gradle.kts 添加 maven 仓库

使用 kotlin script DSL 配置 build.gradle.kts (高版本移动到settings.gradle.kts)时,添加 maven 仓库的方式如下:

html 复制代码
pluginManagement {
    repositories {
        maven {
            setUrl("https://maven.aliyun.com/repository/google")
        }
        maven {
            setUrl("https://maven.aliyun.com/repository/public")
        }
        maven {
            setUrl("https://maven.aliyun.com/repository/gradle-plugin")
        }

        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
相关推荐
翼龙云_cloud6 小时前
阿里云代理商:阿里云深度适配DeepSeek V4让中小企业 AI零门槛上云
人工智能·阿里云·云计算·ai智能体·deepseek v4
Echo-J6 小时前
unbuntu 20.04 ping www.baidu.comping: www.baidu.com: Name or service not known
云计算
hrhcode9 小时前
DeepSeek-V4 全面解析:百万上下文时代的架构革命
人工智能·云计算·deepseekv4
Java面试题总结12 小时前
证书 47 天就过期,还在手动续?聊聊我在 AWS 上的自动化方案
自动化·云计算·aws
yyuuuzz15 小时前
aws注册过程中的常见问题梳理
运维·服务器·网络·云计算·github·aws
Database_Cool_1 天前
在 RDS PostgreSQL 中实现 RaBitQ 量化
数据库·阿里云·ai·postgresql
yyuuuzz2 天前
aws注册过程中的常见注意事项
云计算·aws
倔强的猴子(翻版)2 天前
我用 Python 写了个排序库,一亿数据量下比 C 级 np.sort() 快 7 倍
人工智能·python·算法·阿里云·文心一言
LemonSmile_2 天前
CC Switch 配置 Claude Code 接入 阿里云百炼
阿里云·云计算·claude·百炼
yyuuuzz3 天前
aws 基础认知与实践注意点
运维·服务器·网络·云计算·github·aws