Skip to content

Commit

Permalink
Bean jspTagLibraryResolver is created only if JSTL exists
Browse files Browse the repository at this point in the history
Closes gh-888
  • Loading branch information
rainboyan committed Jan 7, 2025
1 parent bd05374 commit 6d4aa2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion grace-plugin-gsp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
api project(":grace-web-mvc")
api project(":grace-web-url-mappings")
api project(":grace-web-gsp-taglib")
runtimeOnly(project(":grace-web-jsp"))
api project(":grace-web-jsp")
api libs.spring.boot.autoconfigure
annotationProcessor libs.spring.boot.autoconfigureProcessor
annotationProcessor libs.spring.boot.configurationProcessor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public ServletRegistrationBean<GroovyPagesServlet> groovyPagesServlet() {
}

@Bean
@ConditionalOnClass(name = "org.grails.gsp.jsp.TagLibraryResolverImpl")
@ConditionalOnClass(name = "jakarta.servlet.jsp.jstl.core.Config")
public TagLibraryResolver jspTagLibraryResolver(GroovyPagesProperties groovyPagesProperties,
ObjectProvider<GrailsApplication> grailsApplicationObjectProvider) {
TagLibraryResolverImpl tagLibraryResolver = new TagLibraryResolverImpl();
Expand Down

0 comments on commit 6d4aa2d

Please sign in to comment.