-
Notifications
You must be signed in to change notification settings - Fork 282
/
build.gradle
40 lines (32 loc) · 1 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
plugins {
id 'archunit.java-release-conventions'
}
ext.moduleName = 'com.tngtech.archunit.junit5.api'
ext.minimumJavaVersion = JavaVersion.VERSION_1_8
dependencies {
api project(path: ':archunit')
api project(path: ':archunit-junit', configuration: 'archJunitApi')
api dependency.junitPlatformCommons
}
javadoc {
source(project(':archunit-junit').sourceSets.archJunitApi.allJava)
}
sourcesJar {
from project(':archunit-junit').sourceSets.archJunitApi.allSource
}
shadowJar {
exclude 'META-INF/maven/**'
dependencies {
exclude(project(':archunit'))
exclude(dependency { it.name != dependency.guava && !it.name.contains('archunit-junit') })
}
}
def configureDependencies = { deps ->
deps.children().removeIf { dep ->
dep.scope.text() != 'compile' || !(dep.artifactId.text() in ['archunit'])
}
}
this.with project(':archunit-junit').configureJUnitArchive(configureDependencies)
singlePackageExport {
exportedPackage = 'com.tngtech.archunit.junit'
}