build.gradle
1.63 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
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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.5.1/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java'
id 'eclipse'
id 'application'
id 'maven'
}
jar.enabled = true
group = 'com.taover.util'
mainClassName = 'com.taover.util.UtilString'
dependencies {
compile(
"org.apache.poi:poi:3.16",
"org.apache.poi:poi-excelant:3.16",
"ch.ethz.ganymed:ganymed-ssh2:build210",
"org.apache.velocity:velocity:1.6.4",
"com.squareup.okhttp3:okhttp:3.14.1",
"com.belerweb:pinyin4j:2.5.1",
"org.slf4j:slf4j-api:1.7.28"
)
}
repositories {
jcenter()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
uploadArchives {
configuration = configurations.archives
repositories {
mavenDeployer {
snapshotRepository(url: MAVEN_REPO_SNAPSHOT_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}
repository(url: MAVEN_REPO_RELEASE_URL) {
authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD)
}
pom.project {
version '1.1.6'
artifactId ARTIFACT_Id
groupId GROUP_ID
packaging TYPE
description DESCRIPTION
}
}
}
}