Skip to content

Commit f4ffe3f

Browse files
committed
shadedCompile is extended by compile so that commons-lang is visible to tests
1 parent 8b148e2 commit f4ffe3f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

build.gradle

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ configurations {
4343
shadedCompile
4444
}
4545

46-
configurations.compileOnly.extendsFrom configurations.shadedCompile
46+
configurations.compile.extendsFrom configurations.shadedCompile
4747

4848
dependencies {
4949
/*
@@ -141,4 +141,20 @@ bintray {
141141
vcsTag = project.version
142142
}
143143
}
144-
}
144+
}
145+
146+
publishing {
147+
publications {
148+
nebula(MavenPublication) {
149+
pom.withXml {
150+
asNode()
151+
.dependencies
152+
.dependency
153+
.findAll {
154+
['commons-lang'].contains(it.artifactId.text())
155+
}
156+
.each { it.parent().remove(it) }
157+
}
158+
}
159+
}
160+
}

0 commit comments

Comments
 (0)