This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
105 lines (93 loc) · 2.99 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
plugins {
id 'java'
id 'jacoco'
id 'maven-publish'
id 'signing'
}
group = "dev.galasa"
// Note: The following line is changed by the set-version.sh script.
// It is also read by other build scrips as required.
version = "0.36.0"
signing {
def signingKeyId = findProperty("signingKeyId")
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications
}
tasks.withType(Sign) {
onlyIf { isMainOrRelease.toBoolean() }
}
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
repositories {
mavenLocal()
maven {
url "https://development.galasa.dev/main/maven-repo/wrapping/"
}
gradlePluginPortal()
mavenCentral()
}
}
subprojects {
apply plugin: 'jacoco'
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
}
}
// Publish the release.yaml as a maven artifact.
// Note: The maven co-ordinates are versioned using the version for this bundle.
publishing {
afterEvaluate {
publications {
pluginMaven(MavenPublication) {
}
withType(MavenPublication) {
pom {
url = 'https://galasa.dev'
name = 'Galasa Gradle Plugins parent'
description = 'This project contains the Galasa Gradle plugins and common plugin code'
licenses {
license {
name = 'Eclipse Public License - v 2.0'
url = 'https://www.eclipse.org/legal/epl-2.0'
}
}
developers {
developer {
name = 'Galasa Contributors'
email = '[email protected]'
organization = 'Linux Foundation'
organizationUrl = 'https://github.com/galasa-dev'
}
}
scm {
connection = 'scm:git:git:://github.com/galasa-dev/gradle'
developerConnection = 'scm:git:git:://github.com/galasa-dev/gradle'
url = 'https://github.com/galasa-dev/gradle'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/galasa-dev/projectmanagement/issues'
}
}
}
}
}
repositories {
maven {
url = "$targetMaven"
if ("$targetMaven".startsWith('http')) {
credentials {
username System.getenv("GITHUB_ACTOR")
password System.getenv("GITHUB_TOKEN")
}
}
}
}
}