发布artifact
# 发布artifact
# maven
# 目的地:本地
apply plugin: 'maven'
group = 'com.github.skyNet2017'
version = '1.0.6.12'
uploadArchives {
repositories {
mavenDeployer {
//repository(url: "file://[your local maven path here]")
repository(url: mavenLocal().getUrl())
}
}
}
//artifactId默认为module名字
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
结果:
# 目的地: nexus
# 目的地:maven center
# 方式: gradle
# 方式: 命令行
# jcenter
编辑 (opens new window)
上次更新: 2022/08/25, 20:20:31