-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
93 lines (76 loc) · 2.58 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
import com.github.jk1.license.render.*
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url "http://repository.activeeon.com/content/groups/proactive/"
}
}
dependencies {
classpath "com.diffplug.gradle.spotless:spotless:2.4.0"
classpath "org.ow2.proactive:coding-rules:1.0.0"
classpath 'com.github.jk1:gradle-license-report:1.7'
}
dependencies {
delete "gradle/ext"
ant.unjar src: configurations.classpath.find { it.name.startsWith("coding-rules") }, dest: 'gradle/ext'
}
}
group 'org.ow2.proactive'
version projectVersion
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.jk1.dependency-license-report'
apply from: "$rootDir/gradle/ext/coding-format.gradle"
licenseReport {
configurations = ['runtime']
renderers = [new InventoryHtmlReportRenderer()]
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenCentral()
}
uploadArchives {
repositories {
mavenDeployer {
snapshotRepository(url: "http://repository.activeeon.com/content/repositories/snapshots/") {
authentication(userName: "${System.getProperty('nexusUsername')}",
password: "${System.getProperty('nexusPassword')}")
}
repository(url: "http://repository.activeeon.com/content/repositories/releases/") {
authentication(userName: "${System.getProperty('nexusUsername')}",
password: "${System.getProperty('nexusPassword')}")
}
}
}
}
defaultTasks 'clean', 'jar'
dependencies {
compile 'org.projectlombok:lombok:1.16.6'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
// https://mvnrepository.com/artifact/org.apache.httpcomponents/fluent-hc
compile group: 'org.apache.httpcomponents', name: 'fluent-hc', version: '4.5.2'
compile 'org.json:json:20231013'
testCompile 'org.hamcrest:java-hamcrest:2.0.0.0'
testCompile 'com.google.truth:truth:0.28'
testCompile 'junit:junit:4.12'
testCompile 'nl.jqno.equalsverifier:equalsverifier:2.0.2'
testCompile 'org.mockito:mockito-core:1.10.19'
}
jar {
from {
configurations.compile
.findAll { !it.name.toLowerCase().contains("slf4j") }
.collect { it.isDirectory() ? it : zipTree(it) }
}
}