问题
I am developing application using spring boot, i am using gradle as build tool, i want to configure gradle to resolve their dependencies instead of maven central or jcenter go to my Local nexus server get all dependencies from their and build project. I did't found any configuration.
回答1:
Add your nexus url in build.gradle.
repositories {
// mavenLocal()
// mavenCentral()
// jcenter()
//maven { url 'http://10.9.0.31:8099/repository/maven-public/' }
maven { url 'http://ip:port/repository/maven-public/' }
}
For nexus configuration look at this
来源:https://stackoverflow.com/questions/59676030/use-nexus-as-dependency-resolver-using-gradle-in-spring-boot-application