micronaut-gcp icon indicating copy to clipboard operation
micronaut-gcp copied to clipboard

GCP guide for Google Functions doesn't correctly declares Maven dependencies

Open Praytic opened this issue 3 years ago • 0 comments

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

Praytic avatar Sep 20 '21 15:09 Praytic