I am upgrading application to java 21 from 17. Upg...
# community-support
o
I am upgrading application to java 21 from 17. Upgrading gradle 8.3 to 8.6 Now I found repo auth to my nexus repo not working so
Copy code
Could not resolve all files for configuration ':compileClasspath'.
   > Could not find spring-boot-starter-actuator-3.2.3.jar (org.springframework.boot:spring-boot-starter-actuator:3.2.3).
     Searched in the following locations:
         <https://localrepodamain.com/my-repo/repository/terra-group/org/springframework/boot/spring-boot-starter-actuator/3.2.3/spring-boot-starter-actuator-3.2.3.jar>
initially was using
id "org.hibernate.build.maven-repo-auth" version "3.0.4"
and changed and tried with
id("digital.fino.build.gradle-maven-auth") version "4.1.1"
still same error.
Copy code
[11:53 AM] repositories {
	maven {
		name = "my-repo"
		url = repoGroupUrl
	}
}
and putting credentials in setting.xml
Copy code
<servers>
	<server>
		<id>my-repo</id>
		<username>user</username>
		<password>user123</password>
	</server>
</servers>
old project (java 17 + gradle 8.3) still working with this setup is this any compatibility issue?
v
Please do not split topics across several threads. This makes following the conversation in the threads view very hard as the context of the other messages is missing. If you have additional information either edit the original message or post to its thread. Regarding the problem, you should probably ask tlhe author / maintainer of that plugin I guess?
o
Ok noted, I am using this for the first time and enters directly was gone in post, finally only noticed the edit option in message. ok thanks for the feedback. But when using direct also its not authentication it seems
Copy code
repositories {
    ivy {
        url "<http://repo.mycompany.com>"
        credentials {
            username "user"
            password "password"
        }
    }
}
Is there any changes added in 8.6 configuration for private repo auth. I am using sonatype nexus which is working fine in java 17 + gradle 8.3 spring boot project
v
I'm at least not aware of any changes, but that doesn't mean there are none. 😄 Is it intentional that you use
ivy { ... }
? For accessing an NXRM I'd more expect a
maven { ... }
o
oh sorry, I copied the wrong sample, the one I used was
Copy code
maven {
        url "<https://localrepodamain.com/my-repo>"
        credentials {
            username "user"
            password "user123"
        }
    }
by referring GradleDoc
v
I see. Well that should probably work as it is also documented like that 😄
o
getting same error only :(
Copy code
Could not resolve all files for configuration ':compileClasspath'.
   > Could not find spring-boot-starter-actuator-3.2.3.jar (org.springframework.boot:spring-boot-starter-actuator:3.2.3).
     Searched in the following locations:
         <https://localrepodamain.com/my-repo/repository/terra-group/org/springframework/boot/spring-boot-starter-actuator/3.2.3/spring-boot-starter-actuator-3.2.3.jar>
Not sure why working in old version but not in new If I use mavenCentral its working also, so mostly the auth not happening. I am able to download jar with the mentioned link from browser
v
Maybe pinpoint the exact version since when it is not working and then have a look at its release notes?