-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·65 lines (56 loc) · 1.91 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
// Apply plugins
plugins {
// adds './gradlew shadowjar', which creates a fat Jar (includes all dependencies) in build/libs/
id 'com.github.johnrengelman.shadow' version '4.0.2'
// Needed for all Java projects
id 'java'
id 'application'
}
shadowJar {
transform(com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer)
}
// Basic configuration and settings for all (sub-)projects
allprojects {
group = 'org.netspeak'
version = '1.0'
mainClassName = 'org.netspeak.usage.Cli'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Set source file encoding
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
javadoc.options.encoding = 'UTF-8'
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
// Declare global dependencies
dependencies {
implementation group: 'org.apache.hadoop', name: 'hadoop-common', version: '3.3.1'
implementation group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: '3.3.1'
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.19'
implementation 'info.picocli:picocli:4.5.2'
testImplementation 'junit:junit:4.12'
}
// Set MANIFEST.MF contents
jar {
manifest {
attributes('Main-Class': mainClassName)
}
}
}
// Set POM definition
project.ext.pomDef = {
name = 'Netspeak 4 indexing'
description = 'An application with lots of miscellaneous functionality related to Netspeak 4'
url = 'https://netspeak.org'
//licenses {
// license {
// name = 'The Apache License, Version 2.0'
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
//}
organization {
name = 'Netspeak'
url = 'https://netspeak.org'
}
}
// Include Artifactory configuration
apply from: 'artifactory.gradle'