forked from KimZing/kimzing-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (68 loc) · 2 KB
/
build.gradle
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
group 'com.kimzing'
version '1.0.0'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
ext {
orikaVersion = '1.5.2'
fastJsonVersion = '1.2.41'
langVersion='3.7'
collectsVersion='3.2.2'
beanUtilsVersion='1.9.3'
ioVersion='2.6'
poiVersion='3.16'
mailVersion='1.5.5'
pinYinVersion='2.5.0'
}
dependencies {
// Mapper
compile("ma.glasnost.orika:orika-core:$orikaVersion")
// FastJson
compile("com.alibaba:fastjson:$fastJsonVersion")
// POI
compile("org.apache.poi:poi:$poiVersion")
compile("org.apache.poi:poi-ooxml:$poiVersion")
// commons-util
compile("org.apache.commons:commons-lang3:$langVersion")
compile("commons-collections:commons-collections:$collectsVersion")
compile("commons-beanutils:commons-beanutils:$beanUtilsVersion")
compile("commons-io:commons-io:$ioVersion")
// PinYin4J
compile("com.belerweb:pinyin4j:$pinYinVersion")
// Java Email
compile("com.sun.mail:javax.mail:$mailVersion")
}
//打包源码
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
maven(MavenPublication) {
//指定group/artifact/version信息,可以不填。默认使用项目group/name/version作为groupId/artifactId/version
groupId project.group
artifactId project.name
version project.version
//如果是war包填写components.web,如果是jar包填写components.java
from components.java
//配置上传源码
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven {
//指定要上传的maven私服仓库
url = "https://mvn.kimzing.com:8081/nexus/content/repositories/kimzing/"
//认证用户和密码
credentials {
username 'KimZing'
password '123456'
}
}
}
}