Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6231965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:01:57+00:00 2026-05-24T10:01:57+00:00

I have some question related to project building in Java . When attempting to

  • 0

I have some question related to project building in Java.

When attempting to find some good examples of projects using Gradle as their building system, I was searching through Google Code.

There were some and I tried checking out this project and examined the related build.gradle file: http://code.google.com/p/spock/source/browse/trunk/spock-example/build.gradle?r=1316


Now, I can easily build this project using command line and all the dependencies are nicely and automatically resolved. However, automatic build also generates an IntelliJ IDEA project.

So, the question.

I’m sure there are plenty of Gradle-based projects on the web. How are these building systems like Gradle being integrated with IDE‘s?

For example, generated project for IntelliJ IDEA can’t be compiled using the internal tools of the IDE and can’t be debugged (!)

The only thing I can do is extend the test cases, run them and package the final jar. Is this OK? I’m not really used to Java building systems, but I thought they should integrate easily with the IDE.

What about making the same things with Ant/Maven?


I’m probably missing something and if somebody has experience, please help me 🙂

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:01:58+00:00Added an answer on May 24, 2026 at 10:01 am

    To my knowledge, Gradle’s IntelliJ support is nearly complete. I’ve successfully used it to generate an IntelliJ project configuration for a fairly complex project. I haven’t had a chance to use it much, as I’m just looking at transitioning from Gradle to Maven, but I didn’t notice any problem like you seem to be describing. Maybe the build you’re using is using an older version of Gradle that didn’t have good IDE support yet? Can you give some specific examples of things that don’t work the way you expect?

    Edit: Specifically for your problem, I did this, and it worked with Gradle 1.0-milestone-4, IntelliJ 10.5, and JDK 1.6.0_26 on Windows 7:

    git svn clone -r HEAD http://spock.googlecode.com/svn/trunk spock
    cd spock
    gradle idea
    

    Then, in IntelliJ, File -> Open Project…, navigate to and select …/spock/spock.ipr as the project to open. I first ran a full build of the project (Build -> Make Project), and hit a problem with spock.util.concurrent.BlockingVariables. I had to tell IntelliJ not to generate a stub for that class. My Groovy isn’t very strong, so I can’t tell you why that fixed the problem or what the implications of doing it are. After that, I was able to successfully run spock-spring/src/test/groovy/org/spockframework/spring/InjectionExamples.groovy. Then I put a breakpoint on line 38 of that file (service instanceof IService1), and I was able to debug it and break on that line.

    It’s worth noting that the Gradle build doesn’t include all of the modules in that project. The default Maven build includes ten modules in total, whereas the Gradle build only has six. The Gradle build doesn’t include spock-maven, spock-example, spock-grails-support, or spock-grails. If I had to guess, they’re probably transitioning to Gradle in phases, and they’re not all the way there yet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some questions about using MySQLi queries, and related memory management. Suppose I
So, i have some question about xml Documents in Java. Can i get all
I have a solution with many Visual C++ projects, all using PCH, but some
I have a question related to user permissions in python. I have a project
Hi all I have seen all question related to this problem but couldn't find
I have some thread-related questions, assuming the following code. Please ignore the possible inefficiency
I have Used Dojo 1.0, but I have some version related questions: When will
I have some question: How to make a role based web application? Such as
I have some code which populates a hashtable with a question as the key
I have a question about reflection I am trying to have some kind of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.