This repository has been archived by the owner on Jul 29, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
57 lines (51 loc) · 1.92 KB
/
build.gradle.kts
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
plugins {
java
groovy
checkstyle
distribution
id("org.omegat.gradle") version "1.5.7"
id("com.palantir.git-version") version "0.13.0"
}
// calculate version string from git tag, hash and commit distance
fun getVersionDetails(): com.palantir.gradle.gitversion.VersionDetails = (extra["versionDetails"] as groovy.lang.Closure<*>)() as com.palantir.gradle.gitversion.VersionDetails
if (getVersionDetails().isCleanTag) {
version = getVersionDetails().lastTag.substring(1)
} else {
version = getVersionDetails().lastTag.substring(1) + "-" + getVersionDetails().commitDistance + "-" + getVersionDetails().gitHash + "-SNAPSHOT"
}
omegat {
version = "5.7.1"
pluginClass = "tokyo.northside.omegat.textra.OmegatTextraMachineTranslation"
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
packIntoJar("oauth.signpost:signpost-core:2.1.1")
packIntoJar("oauth.signpost:signpost-commonshttp4:2.1.1")
packIntoJar("org.apache.httpcomponents:httpclient:4.5.13")
packIntoJar("com.fasterxml.jackson.core:jackson-core:2.13.3")
packIntoJar("com.fasterxml.jackson.core:jackson-databind:2.13.3")
implementation("commons-io:commons-io:2.11.0")
implementation("commons-lang:commons-lang:2.6")
testImplementation("commons-io:commons-io:2.11.0")
testImplementation("commons-lang:commons-lang:2.6")
testImplementation("org.codehaus.groovy:groovy-all:3.0.10")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
repositories {
mavenCentral()
}
tasks.withType<Checkstyle>().configureEach {
isIgnoreFailures = true
exclude("**/dialog/TextraOptionDialog.java")
}
distributions {
main {
contents {
from(tasks["jar"], "README.md", "CHANGELOG.md", "COPYING", "DEVELOP.md")
}
}
}