File tree Expand file tree Collapse file tree
plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/internal/dependencies Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import de.fayard.refreshVersions.core.internal.forNpm
1010import de.fayard.refreshVersions.core.internal.withGlobalRepos
1111import de.fayard.refreshVersions.core.internal.withPluginsRepos
1212import okhttp3.OkHttpClient
13+ import org.gradle.api.InvalidUserCodeException
1314import org.gradle.api.Project
1415import org.gradle.api.artifacts.ConfigurationContainer
1516import org.gradle.api.artifacts.Dependency
@@ -35,7 +36,11 @@ internal class DependenciesTracker {
3536 // and https://yarnpkg.com/getting-started/migration#update-your-configuration-to-the-new-settings
3637 // and also https://yarnpkg.com/configuration/yarnrc#npmRegistryServer
3738 rootProject.allprojects {
38- afterEvaluate {
39+ try {
40+ afterEvaluate {
41+ recordBuildscriptAndRegularDependencies(npmRegistries)
42+ }
43+ } catch (e: InvalidUserCodeException ) {
3944 recordBuildscriptAndRegularDependencies(npmRegistries)
4045 }
4146 }
You can’t perform that action at this time.
0 commit comments