generated from omegat-org/plugin-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.67 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
plugins {
id 'java'
id 'jacoco'
id 'eclipse'
id 'checkstyle'
id 'distribution'
id 'nebula.release' version '17.2.1'
id 'org.omegat.gradle' version '1.4.2'
id 'com.diffplug.spotless' version '6.13.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
omegat {
version = "5.7.1"
pluginClass = "net.briac.omegat.plugin.odtreview.ODTReviewPlugin"
}
release {
defaultVersionStrategy = nebula.plugin.release.git.opinion.Strategies.SNAPSHOT
}
dependencies {
packIntoJar group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
// The ODF Simple API is gone in version > 0.9.0, after that we'll have to
// use the 'odfdom-java' package
packIntoJar group: 'org.odftoolkit', name: 'simple-odf', version: '0.9.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
implementation group: 'commons-lang', name: 'commons-lang', version: '2.6'
implementation group: 'org.omegat', name: 'lib-mnemonics', version: '1.0'
implementation group: 'com.devskiller', name: 'jfairy', version: '0.6.4'
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'xmlunit', name: 'xmlunit', version: '1.6'
}
checkstyle {
ignoreFailures = true
toolVersion = '7.1'
}
distributions {
main {
contents {
from(jar)
from('README.md', 'COPYING', 'CHANGELOG.md')
}
}
}
spotless {
java {
licenseHeaderFile rootProject.file('config/spotless/license.txt')
targetExclude 'src/gen/**'
eclipse().configFile 'config/eclipse/eclipse-formatting.xml'
removeUnusedImports()
}
}