-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
151 lines (121 loc) · 5.07 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
import com.github.jk1.license.render.*
apply plugin: 'java'
apply from: "$rootDir/gradle/ext/coding-format.gradle"
apply plugin: 'com.github.jk1.dependency-license-report'
archivesBaseName = 'nodesource-addons'
buildscript {
repositories {
if (project.hasProperty('local')) mavenLocal()
mavenCentral()
maven { url 'http://repository.activeeon.com/content/groups/proactive/' }
maven { url "http://nexus.qmino.com/content/repositories/miredot" }
maven { url 'http://dl.bintray.com/content/abashev/vfs-s3'}
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://repo.jenkins-ci.org/releases/' }
}
dependencies {
classpath 'com.qmino:miredot-plugin:1.6.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath "com.diffplug.gradle.spotless:spotless:2.4.0"
classpath "org.ow2.proactive:coding-rules:1.0.0"
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.1"
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'
}
}
licenseReport {
configurations = ['runtime']
renderers = [new InventoryHtmlReportRenderer()]
}
allprojects {
apply plugin: 'maven'
apply plugin: 'project-report'
group = 'org.ow2.proactive'
version = nodesourceAddonsVersion
rootProject.buildscript.repositories.each {
repositories.add(it)
}
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')}")
}
}
}
}
}
ext.javaSubprojects = subprojects.findAll { new File(it.projectDir, "src").exists() }
configure(javaSubprojects) {
apply plugin: 'java'
apply plugin: 'org.sonarqube'
apply plugin: 'jacoco'
sonarqube {
properties {
property "sonar.projectKey", "$project.group:nodesource-addons"
property "sonar.projectName", "nodesource-addons"
property "sonar.jdbc.driverClassName", "org.postgresql.Driver"
property "sonar.language", "java"
property "sonar.sources", "src/main"
property 'sonar.jacoco.reportPath', "${buildDir}/jacoco/test.exec"
property 'sonar.junit.reportsPath', "${buildDir}/test-results/test"
}
}
jacoco {
toolVersion = '0.8.2'
}
jacocoTestReport {
additionalSourceDirs = files(sourceSets.main.allSource.srcDirs)
sourceDirectories = files(sourceSets.main.allSource.srcDirs)
classDirectories = files(sourceSets.main.output)
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
}
dependencies {
compile 'ch.qos.reload4j:reload4j:1.2.25'
compile 'com.google.guava:guava:32.0.1-jre'
compile "org.ow2.proactive:rm-server:${rmVersion}"
compile "org.objectweb.proactive:programming-core:${programmingVersion}"
testCompile 'junit:junit:4.12'
testCompile 'org.hamcrest:hamcrest-junit:2.0.0.0'
testCompile 'org.mockito:mockito-core:1.10.19'
}
configurations {
shadowJar
runtime.extendsFrom = [compile]
runtime.exclude group: 'org.ow2.proactive', module: 'common-api'
runtime.exclude group: 'org.ow2.proactive', module: 'rm-server'
runtime.exclude group: 'org.objectweb.proactive', module: 'programming-core'
runtime.exclude group: 'com.google.guava', module: 'guava'
runtime.exclude group: 'commons-logging', module: 'commons-logging'
runtime.exclude group: 'org.apache', module: 'log4j'
runtime.exclude group: 'log4j', module: 'apache-log4j-extras'
runtime.exclude group: 'ch.qos.reload4j', module: 'reload4j'
runtime.exclude group: 'org.slf4j', module: 'slf4j-api'
runtime.exclude group: 'org.slf4j', module: 'slf4j-simple'
runtime.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
runtime.exclude group: 'org.slf4j', module: 'slf4j-reload4j'
testRuntime.extendsFrom = [testCompile]
}
jar {
manifest {
attributes("Implementation-Title": "ProActive",
"Implementation-Version": version,
"Specification-Version": version,
"Implementation-Vendor": "Activeeon - OASIS - INRIA Sophia Antipolis",
"Implementation-URL": "http://proactive.inria.fr"
)
}
}
}