Created
August 13, 2021 20:12
-
-
Save jeffscottbrown/69674fb79b8cb190aa3f03fd6dd35d92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testdemo $ mn create-app --build maven demoapp | |
| Application created at /Users/jeffscottbrown/testdemo/demoapp | |
testdemo $ | |
testdemo $ cd demoapp | |
demoapp $ | |
demoapp $ cat src/test/java/demoapp/DemoappTest.java | |
package demoapp; | |
import io.micronaut.runtime.EmbeddedApplication; | |
import io.micronaut.test.extensions.junit5.annotation.MicronautTest; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.Assertions; | |
import javax.inject.Inject; | |
@MicronautTest | |
class DemoappTest { | |
@Inject | |
EmbeddedApplication<?> application; | |
@Test | |
void testItWorks() { | |
Assertions.assertTrue(application.isRunning()); | |
} | |
} | |
demoapp $ | |
demoapp $ ./mvnw package | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] --------------------------< demoapp:demoapp >--------------------------- | |
[INFO] Building demoapp 0.1 | |
[INFO] --------------------------------[ jar ]--------------------------------- | |
[INFO] | |
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ demoapp --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] Copying 2 resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ demoapp --- | |
[INFO] Changes detected - recompiling the module! | |
[INFO] Compiling 1 source file to /Users/jeffscottbrown/testdemo/demoapp/target/classes | |
[INFO] | |
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ demoapp --- | |
[INFO] Using 'UTF-8' encoding to copy filtered resources. | |
[INFO] skip non existing resourceDirectory /Users/jeffscottbrown/testdemo/demoapp/src/test/resources | |
[INFO] | |
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ demoapp --- | |
[INFO] Changes detected - recompiling the module! | |
[INFO] Compiling 1 source file to /Users/jeffscottbrown/testdemo/demoapp/target/test-classes | |
[INFO] | |
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ demoapp --- | |
[INFO] | |
[INFO] ------------------------------------------------------- | |
[INFO] T E S T S | |
[INFO] ------------------------------------------------------- | |
[INFO] Running demoapp.DemoappTest | |
15:11:46.410 [main] INFO i.m.context.env.DefaultEnvironment - Established active environments: [test] | |
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.951 s - in demoapp.DemoappTest | |
[INFO] | |
[INFO] Results: | |
[INFO] | |
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 | |
[INFO] | |
[INFO] | |
[INFO] --- micronaut-maven-plugin:2.0.1:graalvm-resources (default-graalvm-resources) @ demoapp --- | |
[INFO] Generating /Users/jeffscottbrown/testdemo/demoapp/target/classes/META-INF/native-image/demoapp/demoapp/resource-config.json | |
[INFO] | |
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ demoapp --- | |
[INFO] Building jar: /Users/jeffscottbrown/testdemo/demoapp/target/demoapp-0.1.jar | |
[INFO] | |
[INFO] --- maven-shade-plugin:3.1.0:shade (default-shade) @ demoapp --- | |
[INFO] Including io.micronaut:micronaut-inject:jar:2.5.12 in the shaded jar. | |
[INFO] Including org.slf4j:slf4j-api:jar:1.7.26 in the shaded jar. | |
[INFO] Including javax.annotation:javax.annotation-api:jar:1.3.2 in the shaded jar. | |
[INFO] Including javax.inject:javax.inject:jar:1 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-core:jar:2.5.12 in the shaded jar. | |
[INFO] Including com.github.spotbugs:spotbugs-annotations:jar:4.0.3 in the shaded jar. | |
[INFO] Including com.google.code.findbugs:jsr305:jar:3.0.2 in the shaded jar. | |
[INFO] Including org.yaml:snakeyaml:jar:1.26 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-validation:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-core-reactive:jar:2.5.12 in the shaded jar. | |
[INFO] Including org.reactivestreams:reactive-streams:jar:1.0.3 in the shaded jar. | |
[INFO] Including javax.validation:validation-api:jar:2.0.1.Final in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http-client:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.reactivex.rxjava2:rxjava:jar:2.2.10 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http-client-core:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-websocket:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http-netty:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-buffer-netty:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.netty:netty-handler:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-resolver:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-codec-http2:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-handler-proxy:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-common:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-buffer:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-transport:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-codec:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.netty:netty-codec-socks:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http-server-netty:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http-server:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-router:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.netty:netty-codec-http:jar:4.1.66.Final in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-runtime:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-http:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-aop:jar:2.5.12 in the shaded jar. | |
[INFO] Including io.micronaut:micronaut-context:jar:2.5.12 in the shaded jar. | |
[INFO] Including com.fasterxml.jackson.core:jackson-databind:jar:2.12.2 in the shaded jar. | |
[INFO] Including com.fasterxml.jackson.core:jackson-annotations:jar:2.12.2 in the shaded jar. | |
[INFO] Including com.fasterxml.jackson.core:jackson-core:jar:2.12.2 in the shaded jar. | |
[INFO] Including com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.12.2 in the shaded jar. | |
[INFO] Including com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.12.2 in the shaded jar. | |
[INFO] Including ch.qos.logback:logback-classic:jar:1.2.3 in the shaded jar. | |
[INFO] Including ch.qos.logback:logback-core:jar:1.2.3 in the shaded jar. | |
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation. | |
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation. | |
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation. | |
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation. | |
[WARNING] Discovered module-info.class. Shading will break its strong encapsulation. | |
[INFO] Replacing original artifact with shaded artifact. | |
[INFO] Replacing /Users/jeffscottbrown/testdemo/demoapp/target/demoapp-0.1.jar with /Users/jeffscottbrown/testdemo/demoapp/target/demoapp-0.1-shaded.jar | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD SUCCESS | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 6.897 s | |
[INFO] Finished at: 2021-08-13T15:11:49-05:00 | |
[INFO] ------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment