This repository was archived by the owner on Dec 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
66 lines (56 loc) · 1.39 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
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.com.github.breadmoirai:github-release:1.0.9'
}
}
apply plugin: 'java'
apply plugin: 'com.github.breadmoirai.github-release'
defaultTasks 'clean', 'build'
repositories {
mavenCentral()
}
configurations {
releaseJars {
extendsFrom runtime
exclude group: "org.elasticsearch"
}
}
dependencies {
compile files('kuromoji/kuromoji-core/target/kuromoji-core-1.0-SNAPSHOT.jar', 'kuromoji/kuromoji-ipadic-neologd/target/kuromoji-ipadic-neologd-1.0-SNAPSHOT.jar')
compile 'commons-io:commons-io:2.5'
compile "org.elasticsearch:elasticsearch:${elasticsearch_version}"
}
task distZip(type: Zip, dependsOn: jar) {
archiveName = "elasticsearch-analysis-japanese-es${elasticsearch_version}.zip"
into ('elasticsearch') {
from jar.archivePath
from configurations.releaseJars
from 'build/resources/main/plugin-descriptor.properties'
}
}
processResources {
from(sourceSets.main.resources.srcDirs) {
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [
'elasticsearch_version': project.property('elasticsearch_version')
])
}
}
artifacts {
archives distZip
}
jar {
into('META-INF') {
from 'LICENSE'
}
}
githubRelease {
token = "${github_token}"
owner = 'bgpat'
repo = 'elasticsearch-analysis-japanese'
releaseAssets = distZip.destinationDir.listFiles()
}