-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
150 lines (136 loc) · 5.56 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
plugins {
id 'java'
id 'groovy'
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'signing'
id 'com.bmuschko.nexus' version '2.3.1'
// id 'io.codearte.nexus-staging' version '0.21.2'
}
group 'io.github.zhangliangbo'
version '1.0.1'
sourceCompatibility = "8"
targetCompatibility = "8"
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
jcenter()
mavenCentral()
}
dependencies {
//function programming
implementation 'io.vavr:vavr:0.10.3'
//netty
implementation 'io.netty:netty-all:4.1.49.Final'
//apache
implementation 'org.apache.commons:commons-lang3:3.10'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-text:1.8'
implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'org.apache.commons:commons-jcs-core:2.2.1'
implementation 'org.apache.commons:commons-compress:1.20'
implementation 'org.apache.commons:commons-email:1.5'
implementation 'org.apache.commons:commons-pool2:2.8.1'
implementation 'commons-io:commons-io:2.6'
implementation 'commons-cli:commons-cli:1.4'
implementation 'commons-beanutils:commons-beanutils:1.9.4'
//log
implementation 'commons-logging:commons-logging:1.2'
implementation 'org.slf4j:jcl-over-slf4j:1.7.30'
implementation 'ch.qos.logback:logback-classic:1.2.3'
implementation 'net.logstash.logback:logstash-logback-encoder:6.4'
//复制源码,适配android
// implementation 'commons-codec:commons-codec:1.14'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.okhttp3:okhttp:3.12.6'
implementation 'com.google.zxing:core:3.4.1'
implementation 'com.google.zxing:javase:3.4.1'
implementation 'net.sourceforge.jexcelapi:jxl:2.6.12'
implementation 'org.apache.poi:poi-ooxml:4.1.1'
implementation 'com.alibaba:easyexcel:2.2.8'
implementation 'com.relops:snowflake:1.1'
implementation 'org.dom4j:dom4j:2.1.3'
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation 'com.sun.xml.bind:jaxb-impl:2.3.0'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.0'
implementation 'javax.activation:activation:1.1.1'
implementation group: 'nz.ac.waikato.cms.weka', name: 'weka-dev', version: '3.9.5'
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre'
//cache
implementation 'com.github.ben-manes.caffeine:caffeine:2.8.6'
//weka
implementation group: 'nz.ac.waikato.cms.weka', name: 'weka-dev', version: '3.9.5'
//lombok
implementation 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
//just use in test to study grammar
testImplementation 'org.codehaus.groovy:groovy-all:3.0.4'
//real test
testImplementation 'junit:junit:4.12'
// https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy
implementation group: 'net.bytebuddy', name: 'byte-buddy', version: '1.12.0'
// https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy-agent
testImplementation group: 'net.bytebuddy', name: 'byte-buddy-agent', version: '1.12.0'
// https://mvnrepository.com/artifact/net.java.dev.jna/jna
implementation group: 'net.java.dev.jna', name: 'jna', version: '5.9.0'
// https://mvnrepository.com/artifact/net.java.dev.jna/jna-platform
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: '5.9.0'
// https://mvnrepository.com/artifact/net.jcip/jcip-annotations
implementation group: 'net.jcip', name: 'jcip-annotations', version: '1.0'
// https://mvnrepository.com/artifact/com.github.spotbugs/spotbugs
implementation group: 'com.github.spotbugs', name: 'spotbugs', version: '4.4.2', ext: 'pom'
// https://mvnrepository.com/artifact/com.google.code.findbugs/findbugs
implementation group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
shadowJar {
zip64 true
manifest {
attributes(['Main-Class': 'xxl.mathematica.network.PingTime'])
}
exclude 'logback.xml'
dependencies {
exclude(dependency('ch.qos.logback:logback-classic'))
}
}
modifyPom {
project {
name 'java implementation of mma'
description 'a simple implementation of mma, for hobby.'
url 'https://github.com/zhangliangbo/level0'
inceptionYear '2016'
scm {
url 'https://github.com/zhangliangbo/level0'
connection 'scm:https://github.com/zhangliangbo/level0.git'
developerConnection 'scm:https://github.com/zhangliangbo/level0.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'zhangliangbo'
name 'zhangliangbo'
email '[email protected]'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
// repositoryUrl = 'http://localhost:8081/repository/maven-releases/'
// snapshotRepositoryUrl = 'http://localhost:8081/repository/maven-snapshots/'
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'http://oss.sonatype.org/content/repositories/snapshots/'
}