File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed
build-logic/plugins/src/main/groovy/org/apache/grails/buildsrc Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,4 @@ class GradleUtils {
4141 static <T> T lookupProperty (Project project , String name , T defaultValue = null ) {
4242 project. findProperty(name) as T ?: defaultValue
4343 }
44-
45- static <T> T lookupPropertyByType (Project project , String name , Class<T> type ) {
46- project. findProperty(name) as T
47- }
4844}
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import java.time.format.DateTimeFormatter
4848import java.time.temporal.ChronoUnit
4949
5050import static org.apache.grails.buildsrc.GradleUtils.lookupProperty
51- import static org.apache.grails.buildsrc.GradleUtils.lookupPropertyByType
5251
5352@CompileStatic
5453class SbomPlugin implements Plugin<Project > {
@@ -125,8 +124,8 @@ class SbomPlugin implements Plugin<Project> {
125124 def sbomOutputLocation = project. layout. buildDirectory. file(
126125 project. provider {
127126 def artifactId = lookupProperty(project, ' pomArtifactId' , project. name)
128- def version = lookupPropertyByType( project, ' projectVersion' , String )
129- " ${ artifactId} - ${ version} -sbom.json" as String
127+ def version = project. findProperty( ' projectVersion' )
128+ " $artifactId - $ version -sbom.json" as String
130129 }
131130 )
132131
You can’t perform that action at this time.
0 commit comments