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

  • SEARCH
  • Home
  • 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 8008503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:09:31+00:00 2026-06-04T18:09:31+00:00

I am trying to setup a new Java project using Gradle as the build

  • 0

I am trying to setup a new Java project using Gradle as the build tool. For this post, lets assume that the project needs to use Hibernate [hibernate-core] and Spring [spring-core].

build.gradle

def localMavenRepo = "file://opt/m2/repository"

allprojects {
    apply plugin: "java"

    repositories {
        maven {
           url localMavenRepo
        }
    }

    dependencies {
        compile     "org.hibernate:hibernate-core:3.5.0-CR-2"
        compile     "org.springframework:spring-core:3.0.5-RELEASE"
    }
}

When I run gradle-build I get the following:

FAILURE: Build failed with an exception.

  • What went wrong:

    Could not resolve all dependencies for configuration ‘:testRuntime’.

    Could not find group:org.springframework, module:spring-core, version:3.0.5-RELEASE.

    Required by:
    :gradle_spring_bug:unspecified

The puzzling part is that it finds the hibernate-core artifact in the repository but not the spring-core one.

I am thinking that perhaps the Spring jar itself is to blame.

Here is what I have tried so far:

  1. Change the Maven repository. I am at work at the moment and we using a Maven Proxy repository. I have tried both local and remote repositories. Problem still exists.

  2. Change the Spring version. I have tried different versions of the spring-core dependency (3.0.1-RELEASE, 3.0.3-RELEASE). Problem still exists.

  3. Change the Spring artifact. I have tried the org.springframework.spring-jdbc and org.springframework.security.spring-security-cas-client artifacts as well. Problem still exists.

  4. Verify that it is Spring by trying different artifacts. I have tried ‘junit’, ‘hibernate-core’, ‘hibernate-validator’, ‘javaee-web-api’. Some with different versions. Pointing them to either local or remote repositories and they all work.

What I haven’t tried yet:

  1. Change the version of Gradle
    I am using the latest version of Gradle 1.0-rc-3

  2. Try the Maven central repo
    Need to configure my proxy but that’s my next step. However, I am not too optimistic that it will work.

Would be great if somebody with the latest version of Gradle could try it out and let me know if they are experiencing the same issue.

EDIT

SOLVED : Double check version declaration. Spring 3.0.5-RELEASE doesn’t exist. It’s 3.0.5.RELEASE.

P.S – Don’t have enough points to answer my own question within less than 8 hours.

  • 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-06-04T18:09:32+00:00Added an answer on June 4, 2026 at 6:09 pm

    Double check version declaration. Spring 3.0.5-RELEASE doesn’t exist. It’s 3.0.5.RELEASE

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

Sidebar

Related Questions

I'm trying to get a new Enterprise Application Project set up in Eclipse using
I've been trying to set up a Java EE 6 Maven project via New
Trying to set up a new spring project and im having this issue where
I'm a new Java programmer, and I've been trying to setup a simple Swing
trying to run this program. I think that to setup all of the web
I am trying to setup a maven based project in SpringSource tool suite. I
I'm usually a C# developer, new to Java and I'm trying to setup some
I'm new to Java and Android development so bear with on this... I'm trying
Hello I am new to Git and trying to setup server part and client
I'm pretty new to SOAP so go easy on me. I'm trying to setup

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.