Skip to content

Commit

Permalink
Experimenting with shadows
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Feb 7, 2018
1 parent f9ba626 commit 0318e40
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -375,7 +375,7 @@ subprojects {

println "Publishing with shaded dependencies: $project.name:$project.group:$project.version"

from components.java
from components.shadow

artifact sourcesJar {
classifier "sources"
@@ -385,43 +385,6 @@ subprojects {
classifier "javadoc"
}

pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name "$project.name"
description "$projectDescription"

url 'https://github.com/serenity-bdd/serenity-core'
scm {
url 'scm:git:[email protected]:serenity-bdd/serenity-core.git'
connection 'scm:git:[email protected]:serenity-bdd/serenity-core.git'
developerConnection 'scm:git:[email protected]:serenity-bdd/serenity-core.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'johnsmart'
name 'John Ferguson Smart'
email '[email protected]'
}
}
}
// Preserve compile-scope dependencies
asNode().dependencies.'*'.findAll() {
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
dep.name == it.artifactId.text()
}
}.each() {
it.scope*.value = 'compile'
}
}


}
}

0 comments on commit 0318e40

Please sign in to comment.