From 8e35f28f57f1b98b806381710377b31e092df7c6 Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Thu, 21 Nov 2024 07:55:31 -0800 Subject: [PATCH] Remove unneeded grailsLinkGenerator already created by grails-plugin-url-mappings --- .../asset/pipeline/AssetPipelineGrailsPlugin.groovy | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/asset-pipeline-grails/src/main/groovy/asset/pipeline/AssetPipelineGrailsPlugin.groovy b/asset-pipeline-grails/src/main/groovy/asset/pipeline/AssetPipelineGrailsPlugin.groovy index c3d6307a..7dbe9706 100644 --- a/asset-pipeline-grails/src/main/groovy/asset/pipeline/AssetPipelineGrailsPlugin.groovy +++ b/asset-pipeline-grails/src/main/groovy/asset/pipeline/AssetPipelineGrailsPlugin.groovy @@ -15,10 +15,7 @@ */ package asset.pipeline -import asset.pipeline.AssetPipelineFilter import asset.pipeline.grails.AssetProcessorService -import asset.pipeline.grails.LinkGenerator -import asset.pipeline.grails.CachingLinkGenerator import asset.pipeline.grails.AssetResourceLocator import asset.pipeline.grails.fs.* import asset.pipeline.fs.* @@ -111,14 +108,7 @@ class AssetPipelineGrailsPlugin extends grails.plugins.Plugin { if (BuildSettings.TARGET_DIR) { AssetPipelineConfigHolder.config.cacheLocation = new File((File) BuildSettings.TARGET_DIR, ".assetcache").canonicalPath } - // Register Link Generator - String serverURL = config?.getProperty('grails.serverURL', String, null) - boolean cacheUrls = config?.getProperty('grails.web.linkGenerator.useCache', Boolean, true) - assetProcessorService(AssetProcessorService) - grailsLinkGenerator(cacheUrls ? CachingLinkGenerator : LinkGenerator, serverURL) { bean -> - bean.autowire = true - } assetResourceLocator(AssetResourceLocator) { bean -> bean.parent = "abstractGrailsResourceLocator"