在 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()
    }
}
相关推荐
峰顶听歌的鲸鱼20 小时前
Kubernetes-Pod
linux·运维·云原生·容器·kubernetes·云计算
IvanCodes21 小时前
十、Linux Shell脚本:流程控制语句
linux·云计算
qq_316837751 天前
caddy 使用阿里云的域名通过dns验证申请ssl证书
阿里云·云计算·ssl
IvanCodes1 天前
七、Linux Shell 与脚本基础
linux·云计算
hhzz1 天前
阿里云基础网络的创建、业务隔离及多网之间的互联互通
网络·阿里云·网络架构
久绊A1 天前
阿里云 ECS 与 VPC 配置实操
阿里云·云平台
dong_beijing1 天前
rtmp/flv直播源站搭建方法
服务器·centos·云计算
hhzz1 天前
利用Terraform格式模板文件创建和部署基本网络资源
阿里云·云原生·ros·terraform·资源编排
切糕师学AI2 天前
什么是 FinOps 财务运营(Financial Operations)?
云原生·云计算
伊织萌3 天前
在 Ubuntu 22.04 上安装 PostgreSQL
linux·服务器·ubuntu·postgresql·云计算