Debug gradle internal classes in IntelliJ
up vote
1
down vote
favorite
I have a custom task, like this one:
task hello {
doLast {
println 'Hello, World!'
}
}
Now I can set breakpoint on doLast and IntelliJ will stop there, but I'am unable to debug into gradle core classes, like for example: org.gradle.api.internal.project.DefaultProject#task(...)
Is is possible to attach Gradle sources for debugging Gradle internal classes in IntelliJ?
gradle intellij-idea
add a comment |
up vote
1
down vote
favorite
I have a custom task, like this one:
task hello {
doLast {
println 'Hello, World!'
}
}
Now I can set breakpoint on doLast and IntelliJ will stop there, but I'am unable to debug into gradle core classes, like for example: org.gradle.api.internal.project.DefaultProject#task(...)
Is is possible to attach Gradle sources for debugging Gradle internal classes in IntelliJ?
gradle intellij-idea
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip)
– M.Ricciuti
Nov 21 at 9:35
1
You migth also have to add dependency "gradleApi() (dependencies { compileOnly gradleApi() }) to make Gradle source code available for debug
– M.Ricciuti
Nov 21 at 9:51
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have a custom task, like this one:
task hello {
doLast {
println 'Hello, World!'
}
}
Now I can set breakpoint on doLast and IntelliJ will stop there, but I'am unable to debug into gradle core classes, like for example: org.gradle.api.internal.project.DefaultProject#task(...)
Is is possible to attach Gradle sources for debugging Gradle internal classes in IntelliJ?
gradle intellij-idea
I have a custom task, like this one:
task hello {
doLast {
println 'Hello, World!'
}
}
Now I can set breakpoint on doLast and IntelliJ will stop there, but I'am unable to debug into gradle core classes, like for example: org.gradle.api.internal.project.DefaultProject#task(...)
Is is possible to attach Gradle sources for debugging Gradle internal classes in IntelliJ?
gradle intellij-idea
gradle intellij-idea
asked Nov 21 at 8:32
Maciej Miklas
2,05542042
2,05542042
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip)
– M.Ricciuti
Nov 21 at 9:35
1
You migth also have to add dependency "gradleApi() (dependencies { compileOnly gradleApi() }) to make Gradle source code available for debug
– M.Ricciuti
Nov 21 at 9:51
add a comment |
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip)
– M.Ricciuti
Nov 21 at 9:35
1
You migth also have to add dependency "gradleApi() (dependencies { compileOnly gradleApi() }) to make Gradle source code available for debug
– M.Ricciuti
Nov 21 at 9:51
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip )– M.Ricciuti
Nov 21 at 9:35
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip )– M.Ricciuti
Nov 21 at 9:35
1
1
You migth also have to add dependency "gradleApi() (
dependencies { compileOnly gradleApi() } ) to make Gradle source code available for debug– M.Ricciuti
Nov 21 at 9:51
You migth also have to add dependency "gradleApi() (
dependencies { compileOnly gradleApi() } ) to make Gradle source code available for debug– M.Ricciuti
Nov 21 at 9:51
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53407980%2fdebug-gradle-internal-classes-in-intellij%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
maybe this helps : stackoverflow.com/a/51884925/6899896 ? also, you should configure the gradle wrapper to use a '*-all' distribution (e.g.
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip)– M.Ricciuti
Nov 21 at 9:35
1
You migth also have to add dependency "gradleApi() (
dependencies { compileOnly gradleApi() }) to make Gradle source code available for debug– M.Ricciuti
Nov 21 at 9:51