-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
114 lines (102 loc) · 3.6 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
plugins {
id "base"
id 'eu.xenit.de' version '2.0.5' apply false
id 'eu.xenit.alfresco' version '1.0.1'
id 'org.ajoberstar.reckon' version '0.13.2'
id 'com.github.hierynomus.license' version '0.15.0'
id "org.sonarqube" version "3.2.0"
}
reckon {
scopeFromProp()
stageFromProp('dev', 'rc', 'final')
}
subprojects { project ->
group 'eu.xenit.testing.integration-testing'
version = rootProject.version
ext.alfrescoVersion = '5.2.f'
apply plugin: 'eu.xenit.alfresco'
repositories {
mavenCentral()
alfrescoPublic()
}
plugins.withId('eu.xenit.de') {
alfrescoDynamicExtensions {
repository {
endpoint {
host = project.properties.getOrDefault('host', 'localhost')
port = project.properties.getOrDefault('port', '8080')
}
}
}
}
plugins.withId('java') {
sourceCompatibility = 1.8
java {
withJavadocJar()
withSourcesJar()
}
}
apply plugin: 'com.github.hierynomus.license'
license {
header = rootProject.file('gradle/license-header.txt')
}
apply plugin: "jacoco"
rootProject.tasks.named("sonarqube").configure {
dependsOn(project.tasks.withType(JacocoReport.class))
}
project.tasks.withType(JacocoReport.class).configureEach {
reports {
xml.enabled = true
}
}
plugins.withId("maven-publish") {
publishing {
publications {
all {
if (!project.version.version.isSignificant()) {
version = "${project.version.version.normal}-SNAPSHOT"
}
pom {
url = 'https://github.com/xenit-eu/alfresco-remote-testrunner'
name = "alfresco-remote-testrunner"
description = project.description
developers {
developer {
id = "xenit"
name = "Xenit Solutions NV"
}
}
scm {
connection = 'scm:git:git@github.com:xenit-eu/alfresco-remote-testrunner.git'
developerConnection = 'scm:git:git@github.com:xenit-eu/alfresco-remote-testrunner.git'
url = 'https://github.com/xenit-eu/alfresco-remote-testrunner.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
}
}
repositories {
if (version.version.isSignificant()) {
sonatypeMavenCentral {
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
} else {
sonatypeSnapshots {
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
}
}
}
}