-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.47 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
apply plugin: 'idea'
apply plugin: "java"
apply plugin: 'groovy'
apply plugin: 'application'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
}
}
repositories {
jcenter()
mavenCentral()
}
apply from: 'gradle/test.gradle' // Inheritance - test.gradle file
apply from: 'gradle/dependencies.gradle'
dependencies {
compile commonDependencies.groovy
compile commonDependencies.commonsLang3
compile commonDependencies.guice
compile commonDependencies.dropwizardCore
compile commonDependencies.dropwizardJvm
compile commonDependencies.statsd
compile commonDependencies.slf4j
compile commonDependencies.log4jCore
compile commonDependencies.log4jApi
testCompile commonDependencies.hamcrest
testCompile commonDependencies.junit
testCompile commonDependencies.mockito
runtime files('src/main/resources')
}
rootProject.version = "${majorVersion}"
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'JVM Monitor',
'Implementation-Version': "${majorVersion}"
}
mainClassName = 'com.metric.JVMMonitor'
// baseName = projectName
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"
with jar
}
artifacts {
println 'Building as version: ' + majorVersion
archives fatJar
}