You must specify a URL for a Maven repository

Hi,
Currently i migrating my current application dependencies from old nexus to the new Nexus instance, For same i just changed the dependencies URL to new one as below, and the new nexus public group has all the required dependencies jars, when i run the build getting “You must specify a URL for a Maven repository”. any one can help what went wrong in this simple change ?
Old Gradle Script
buildscript {
repositories {
maven {
url “http://instance1.com:8081/nexus/content/groups/public
}
}
}

dependencies {
runtime libs.oracle_jdbc

runtime(libs.liquibase) {
    exclude module: 'snakeyaml'
}

}

New Gradle Script
buildscript {
repositories {
maven {
url “http://instance2.com:8081/nexus/content/groups/public
}
}
}

dependencies {
runtime libs.oracle_jdbc

runtime(libs.liquibase) {
    exclude module: 'snakeyaml'
}

}

After this Simple Change getting error like
FAILURE: Build completed with 2 failures.
[07:04:46][Gradle failure report] 07:04:46.370 [ERROR] [org.gradle.BuildExceptionReporter]
[07:04:46][Gradle failure report] 07:04:46.370 [ERROR] [org.gradle.BuildExceptionReporter] 1: Task failed with an exception.
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter] -----------
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter] Build file /source/database/database.setup.gradle’ line: 30
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter]
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
[07:04:46][Gradle failure report] 07:04:46.371 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:database.setup:cleanDb’.
[07:04:46][Gradle failure report] 07:04:46.372 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve all dependencies for configuration ‘:database.setup:runtime’.
[07:04:46][Gradle failure report] 07:04:46.372 [ERROR] [org.gradle.BuildExceptionReporter] > You must specify a URL for a Maven repository.
[07:04:46][Gradle failure report] 07:04:46.372 [ERROR] [org.gradle.BuildExceptionReporter]
[07:04:46][Gradle failure report] 07:04:46.372 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
[07:04:46][Gradle failure report] 07:04:46.373 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:database.setup:cleanDb’.
[07:04:46][Gradle failure report] 07:04:46.373 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
[07:04:46][Gradle failure report] 07:04:46.373 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
[07:04:46][Gradle failure report] 07:04:46.373 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

[07:04:46][Gradle failure report] 07:04:46.386 [ERROR] [org.gradle.BuildExceptionReporter] 2: Task failed with an exception.
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] -----------
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] Build file ‘/source/database/database.setup.gradle’ line: 30
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter]
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ‘:database.setup:buildDb’.
[07:04:46][Gradle failure report] 07:04:46.387 [ERROR] [org.gradle.BuildExceptionReporter] > java.lang.NullPointerException (no error message)

I try refresh dependencies option , but couldn’t help !!