Skip to content

Commit c962146

Browse files
committed
Merge branch '7.0.x' into 7.0.x-mongo-pre-update-snapshot
2 parents 712cd35 + 751f49c commit c962146

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

build-logic/plugins/src/main/groovy/org/apache/grails/buildsrc/GradleUtils.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

build-logic/plugins/src/main/groovy/org/apache/grails/buildsrc/PublishPlugin.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ class PublishPlugin implements Plugin<Project> {
178178
it.license.name = 'Apache-2.0'
179179
it.title.set(project.provider { lookupProperty(project, 'pomTitle', project.rootProject.name == 'grails-forge' ? 'Apache Grails® Application Forge' : 'Apache Grails® framework')})
180180
it.desc.set(project.provider { lookupProperty(project, 'pomDescription', project.rootProject.name == 'grails-forge' ? 'Generates Apache Grails® applications' : 'Apache Grails® Web Application Framework')})
181+
it.organization {
182+
it.name.set('Apache Software Foundation')
183+
it.url.set('https://apache.org/')
184+
}
181185
it.developers.set(project.provider { lookupProperty(project, 'pomDevelopers', determineDevelopers(project))})
182186
it.pomCustomization = lookupProperty(project, 'pomCustomization') as Closure
183187
it.publishTestSources.set(project.provider { lookupProperty(project, 'pomPublishTestSources', false)})

build-logic/plugins/src/main/groovy/org/apache/grails/buildsrc/SbomPlugin.groovy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ import java.time.format.DateTimeFormatter
4848
import java.time.temporal.ChronoUnit
4949

5050
import static org.apache.grails.buildsrc.GradleUtils.lookupProperty
51-
import static org.apache.grails.buildsrc.GradleUtils.lookupPropertyByType
5251

5352
@CompileStatic
5453
class 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

grails-forge/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ title=Grails Application Forge
2424
projectDesc=Generates Grails applications
2525

2626
# for forge build process which is a micronaut 3.x.x app with picocli
27-
grailsPublishGradleVersion=0.0.2-SNAPSHOT
27+
grailsPublishGradleVersion=0.0.2
2828
antVersion=1.10.15
2929
antlr4Version=4.8-1!!
3030
apacheRatVersion=0.8.1

0 commit comments

Comments
 (0)