Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfredley committed Dec 31, 2024
1 parent ad55de9 commit 8e23a2d
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014 original authors
* Copyright 2014-2024 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -96,12 +96,9 @@ class GrailsDependencyVersions implements DependencyManagement {
*
* @return the version with lookup from properties when required
*/
String versionLookup(String version){
if (version?.startsWith('${') && version?.endsWith('}')) {
return versionProperties.get(version.substring(2, version.length()-1))
}

return version
String versionLookup(String version) {
version?.startsWith('${') && version?.endsWith('}') ?
versionProperties[version[2..-2]] : version
}

protected void addDependency(String group, String artifactId, String version) {
Expand Down

0 comments on commit 8e23a2d

Please sign in to comment.