-
Notifications
You must be signed in to change notification settings - Fork 103
/
Copy pathbuild.gradle
executable file
·47 lines (41 loc) · 1.73 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
version = '2.0.24'
sourceCompatibility = '1.7'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
if (!hasProperty('mainClass')) {
ext.mainClass = 'com.crowdin.cli.Cli'
}
repositories {
mavenCentral()
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.10'
compile group: 'org.json', name: 'json', version: '20160212'
compile files('libs/crowdin-java-sdk-0.2.jar')
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.5'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.5'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.17'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'org.glassfish.jersey.core', name: 'jersey-client', version: '2.27'
compile group: 'org.glassfish.jersey.media', name: 'jersey-media-json-jackson', version: '2.27'
compile group: 'com.sun.jersey.contribs', name: 'jersey-multipart', version: '1.19.4'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'
compile group: 'net.ricecode', name: 'string-similarity', version: '1.0.0'
}
task buildCrowdinCliJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Crowdin CLI',
'Implementation-Version': version,
'Main-Class': 'com.crowdin.cli.Cli'
}
baseName = 'crowdin-cli'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}