-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
69 lines (60 loc) · 1.56 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
plugins {
id('java')
id('jacoco')
id('checkstyle')
id('distribution')
id('maven')
id('groovy')
}
version = '0.2.5'
compileJava {
sourceCompatibility = '8'
targetCompatibility = '8'
}
repositories {
mavenCentral()
}
configurations {
provided
implementation.extendsFrom provided
}
dependencies {
provided files('./lib/OmegaT.jar')
implementation('com.fasterxml.jackson.core:jackson-databind:2.12.4')
testImplementation('org.assertj:assertj-core:3.20.2')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.4.2')
testImplementation('org.junit.jupiter:junit-jupiter-params:5.8.1');
testImplementation('commons-io:commons-io:2.6')
testImplementation('org.bidib.jbidib.com.vldocking:vldocking:3.0.6')
testImplementation('javax.xml.bind:jaxb-api:2.3.0')
testImplementation('jakarta.xml.bind:jakarta.xml.bind-api:2.3.2')
testImplementation('org.mockito:mockito-core:3.+')
testImplementation('org.apache.commons:commons-lang3:3.12.0')
testRuntime('org.glassfish.jaxb:jaxb-runtime:2.3.2')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.4.2')
}
test {
useJUnitPlatform()
}
jar {
manifest {
from 'MANIFEST.MF'
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
// Create fat jar, excluding provided configuration
from {
(configurations.runtimeClasspath - configurations.provided).collect { it.isDirectory() ? it : zipTree(it) }
}
}
checkstyle {
ignoreFailures = true
toolVersion = '7.1'
}
distributions {
main {
contents {
from(jar)
from('README.md', 'COPYING', 'CHANGELOG.md')
}
}
}