gradle build only include dependents modules, exclude 3rd jars
up vote
2
down vote
favorite
I have a three modules project. Module C dependents on module B, and module B dependents on module A.
Now i want to publish module C, and i hope module C includes module A and B's classes.
I tried this, but it includes 3rd part jars:
jar {
from {
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it }
}
}
Looking forward to your reply, thanks!
gradle build.gradle
add a comment |
up vote
2
down vote
favorite
I have a three modules project. Module C dependents on module B, and module B dependents on module A.
Now i want to publish module C, and i hope module C includes module A and B's classes.
I tried this, but it includes 3rd part jars:
jar {
from {
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it }
}
}
Looking forward to your reply, thanks!
gradle build.gradle
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have a three modules project. Module C dependents on module B, and module B dependents on module A.
Now i want to publish module C, and i hope module C includes module A and B's classes.
I tried this, but it includes 3rd part jars:
jar {
from {
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it }
}
}
Looking forward to your reply, thanks!
gradle build.gradle
I have a three modules project. Module C dependents on module B, and module B dependents on module A.
Now i want to publish module C, and i hope module C includes module A and B's classes.
I tried this, but it includes 3rd part jars:
jar {
from {
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
configurations.compile.collect { it }
}
}
Looking forward to your reply, thanks!
gradle build.gradle
gradle build.gradle
asked Nov 21 at 3:38
ajianzheng
557
557
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
I have solved it:
configurations.compile.filter {XXXX}.collect { it.isDirectory() ? it : zipTree(it) }
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
I have solved it:
configurations.compile.filter {XXXX}.collect { it.isDirectory() ? it : zipTree(it) }
add a comment |
up vote
1
down vote
I have solved it:
configurations.compile.filter {XXXX}.collect { it.isDirectory() ? it : zipTree(it) }
add a comment |
up vote
1
down vote
up vote
1
down vote
I have solved it:
configurations.compile.filter {XXXX}.collect { it.isDirectory() ? it : zipTree(it) }
I have solved it:
configurations.compile.filter {XXXX}.collect { it.isDirectory() ? it : zipTree(it) }
answered Nov 21 at 4:46
ajianzheng
557
557
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53404928%2fgradle-build-only-include-dependents-modules-exclude-3rd-jars%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown