File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
src/main/java/io/spring/gradle/dependencymanagement/internal Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,8 @@ private Configuration copyConfiguration() {
122122 DependencySet allDependencies = this .configuration .getAllDependencies ();
123123 Configuration configurationCopy = this .configurationContainer .newConfiguration (this .configurationConfigurer ,
124124 allDependencies .toArray (new Dependency [allDependencies .size ()]));
125- try {
126- DependencyConstraintSet constraints = this .configuration .getAllDependencyConstraints ();
127- configurationCopy .getDependencyConstraints ().addAll (constraints );
128- }
129- catch (NoSuchMethodError ex ) {
130- // Continue
131- }
125+ DependencyConstraintSet constraints = this .configuration .getAllDependencyConstraints ();
126+ configurationCopy .getDependencyConstraints ().addAll (constraints );
132127 return configurationCopy ;
133128 }
134129
You can’t perform that action at this time.
0 commit comments