When using the micronaut plugin (3.2.4), the AssetPipelineService (line 145) uses a removed constructor for the Micronaut StreamedFile class. This triggers a missing method exception with Micronaut 2.0.
I changed it from:
StreamedFile streamedFile = new StreamedFile(urlCon.getInputStream(), fileUri, urlCon.getLastModified(), urlCon.getContentLength() );
to:
StreamedFile streamedFile = new StreamedFile(urlCon.getInputStream(), MediaType.of(contentType), urlCon.getLastModified(), urlCon.getContentLength() );
The constructor was deprecated in Micronaut 2.0. The new constructor exists in Micronaut 1.1.1, so it should work fine in that release and up to 2.0.
Sorry, I don't have an easy pull request at this time.
BTW, thanks for the great work. I have used the Asset Pipeline since Grails 1.0 days....
When using the micronaut plugin (3.2.4), the AssetPipelineService (line 145) uses a removed constructor for the Micronaut StreamedFile class. This triggers a missing method exception with Micronaut 2.0.
I changed it from: StreamedFile streamedFile = new StreamedFile(urlCon.getInputStream(), fileUri, urlCon.getLastModified(), urlCon.getContentLength() );
to: StreamedFile streamedFile = new StreamedFile(urlCon.getInputStream(), MediaType.of(contentType), urlCon.getLastModified(), urlCon.getContentLength() );
The constructor was deprecated in Micronaut 2.0. The new constructor exists in Micronaut 1.1.1, so it should work fine in that release and up to 2.0.
Sorry, I don't have an easy pull request at this time.
BTW, thanks for the great work. I have used the Asset Pipeline since Grails 1.0 days....