-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathartifactory.gradle
More file actions
39 lines (34 loc) · 1.11 KB
/
artifactory.gradle
File metadata and controls
39 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apply plugin: 'maven-publish'
def VERSION_NAME = "0.0.1"// 版本
javadoc {
options.addStringOption("charset", "UTF-8")
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
//远程发布, 发布到我自己的私有库
afterEvaluate {
publishing {
publications {
maven(MavenPublication) {
//from javadoc.destinationDir
//from sourceSets.main.allSource
from components.java
groupId = "io.github.mahongyin.${rootProject.projectDir.name}"
artifactId = projectDir.name
version = VERSION_NAME
description "lib is a auth with comon"
}
}
repositories {
maven {
//name 'mavenCentral'
url "./repo"//"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
// credentials {
// username mavenCentralUsername
// password mavenCentralPassword
// }
}
}
}
}