forked from sing1ee/jieba-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (46 loc) · 999 Bytes
/
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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url = 'https://repo.maven.apache.org/maven2'
}
}
dependencies {
compile 'org.apache.commons:commons-lang3:3.3.1'
testCompile 'junit:junit:4.8'
}
group = 'com.huaban'
version = '1.0.1-SNAPSHOT'
description = '结巴分词工具(jieba for java)'
sourceCompatibility = '1.8'
configurations.all {
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from(sourceSets.main.allJava)
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from(javadoc.destinationDir)
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
artifact(sourcesJar)
artifact(javadocJar)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}