-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
108 lines (92 loc) · 2.66 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
plugins {
id "java-gradle-plugin"
id "com.gradle.plugin-publish" version "0.21.0"
id 'org.sonarqube' version '6.0.0.5145'
id 'be.vbgn.ci-detect' version '0.5.0'
id 'be.vbgn.dev-conventions' version '0.5.3'
id 'jacoco'
id "maven-publish"
id "idea"
}
group 'eu.xenit.gradle'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
}
configurations {
integrationTestCompileClasspath.extendsFrom testCompileClasspath
integrationTestRuntimeClasspath.extendsFrom testRuntimeClasspath
}
dependencies {
implementation gradleApi()
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'commons-io', name: 'commons-io', version: '2.18.0'
}
import org.gradle.util.GradleVersion
task integrationTest(type: Test, group: "verification") {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
shouldRunAfter(test)
doFirst {
if (gradle.startParameter.offline) {
systemProperty "eu.xenit.gradle.alfrescosdk.integration.useGradleVersion", GradleVersion.current().version
}
}
}
tasks.withType(Test) {
systemProperty("eu.xenit.gradle.alfrescosdk.deprecation.stacktrace", "false")
systemProperty("eu.xenit.gradle.alfrescosdk.deprecation.warnAlways", "true")
}
javadoc {
exclude("**/internal/**")
}
check.dependsOn(tasks.withType(Test))
gradlePlugin {
plugins {
ampBase {
id = "eu.xenit.amp-base"
implementationClass = "eu.xenit.gradle.alfrescosdk.AmpBasePlugin"
}
amp {
id = "eu.xenit.amp"
implementationClass = "eu.xenit.gradle.alfrescosdk.AmpPlugin"
}
alfresco {
id = "eu.xenit.alfresco"
implementationClass = "eu.xenit.gradle.alfrescosdk.AlfrescoPlugin"
}
}
}
pluginBundle {
vcsUrl = "https://github.com/xenit-eu/alfresco-gradle-sdk"
website = vcsUrl
description = "Gradle plugins and tasks to support Alfresco development"
tags = ["alfresco"]
plugins {
ampBase {
displayName = "Alfresco AMP base plugin"
}
amp {
displayName = "Alfresco AMP plugin"
}
alfresco {
displayName = "Alfresco dependency management plugin"
}
}
mavenCoordinates {
groupId = "eu.xenit.gradle"
artifactId = "alfresco-sdk"
}
}