-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (88 loc) · 2.89 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import java.text.SimpleDateFormat
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'be.jlr-home.gradle:plantumlPlugin:0.1.+'
classpath 'com.bmuschko:gradle-nexus-plugin:2.+'
}
}
apply plugin: 'java'
apply plugin: 'plantuml'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'findbugs'
apply plugin: 'com.bmuschko.nexus'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = projectVersion
group = projectGroup
description = projectDescription
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
testCompile group: 'junit' , name: 'junit' , version: junitVersion
compile group: 'org.projectlombok' , name: 'lombok' , version: lombokVersion
compile group: 'ch.qos.logback' , name: 'logback-classic' , version: logbackVersion
}
jar {
manifest {
attributes( "Implementation-Title": projectName,
"Implementation-Version": projectVersion,
"Implementation-Vendor": "Genoscope, LABGeM",
"Product-Name": projectName,
"provider": "Genoscope",
"Created-By": "LABGeM",
"description": projectDescription,
"Build-Date": new SimpleDateFormat("yyyy-MM-dd").format(new Date()),
"Build-JDK": System.getProperty("java.version"),
"Build-Gradle": project.gradle.gradleVersion
)
}
baseName = projectName
}
tasks.withType(JavaForkOptions) {
jvmArgs "-Dcom.sun.management.jmxremote.port=19988", "-Dcom.sun.management.jmxremote.ssl=false", "-Dcom.sun.management.jmxremote.authenticate=false", "-Ddrools.mbeans=enabled"
}
plantuml{
fileFormat = 'SVG'
}
findbugs {
effort = "max"
}
modifyPom {
project {
name projectName
description projectDescription
url projectUrlBase+projectUrlCore
inceptionYear '2014'
scm {
url projectUrlBase+projectUrlCore
connection projectUrlBase+projectUrlCore+'.git'
developerConnection projectGitBase+projectUrlCore+'.git'
}
licenses {
license {
name 'CeCILL-C'
url 'http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.txt'
distribution 'repo'
}
}
developers {
developer {
id 'jmercier'
name 'Jonathan MERCIER'
email '[email protected]'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}