micronaut-gcp
micronaut-gcp copied to clipboard
GCP guide for Google Functions doesn't correctly declares Maven dependencies
Expected Behavior
Dependency for Netty server should be provided
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<scope>provided</scope>
</dependency>
...and excluded from tests
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<classpathDependencyExcludes>
<classpathDependencyExclude>io.micronaut:micronaut-http-server-netty</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</plugin>
Actual Behaviour
Netty dependency has invalid scope.
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-server-netty</artifactId>
<scope>developmentOnly</scope>
</dependency>
Steps To Reproduce
Create a sample app with CLI:
mn create-app demo -b maven -f google-cloud-function
Proceed with instructions from https://micronaut-projects.github.io/micronaut-gcp/4.0.0/guide/index.html#httpFunctions.
Environment Information
No response
Example Application
No response
Version
4.0.0