-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
88 lines (77 loc) · 2.05 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'jacoco'
id 'org.sonarqube' version '3.4.0.2513'
id 'com.diffplug.spotless' version '6.6.1'
id 'distribution'
id 'signing'
id 'io.github.gradle-nexus.publish-plugin' version "1.1.0"
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'com.worksap.nlp:sudachi:0.6.2'
implementation 'com.worksap.nlp:jdartsclone:1.2.0'
testImplementation 'junit:junit:4.13.2'
}
group = 'com.worksap.nlp'
version = '0.2.0-SNAPSHOT'
description = 'Kintoki'
java.sourceCompatibility = JavaVersion.VERSION_1_8
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperty "file.encoding", "UTF-8"
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
}
jacocoTestReport {
reports {
xml.required = true
}
}
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.organization", "worksapplications"
property "sonar.projectKey", "com.worksap.nlp:kintoki"
property "sonar.language", "java"
property "sonar.links.homepage", "https://github.com/WorksApplications/kintoki"
property "sonar.links.ci", "https://github.com/WorksApplications/kintoki/actions"
property "sonar.links.issue", "https://github.com/WorksApplications/kintoki/issues"
}
}
spotless {
encoding "UTF-8"
format 'misc', {
target '*.gradle', '*.md', '.gitignore', '*.txt', '*.csv'
trimTrailingWhitespace()
indentWithSpaces(2)
endWithNewline()
}
java {
eclipse('4.21.0').configFile('.formatter/eclipse-formatter.xml')
licenseHeaderFile('.formatter/license-header')
}
}
java {
withJavadocJar()
withSourcesJar()
}