Skip to content

Instantly share code, notes, and snippets.

@jeffscottbrown
Created October 10, 2018 14:22
Show Gist options
  • Select an option

  • Save jeffscottbrown/0a770a5db2ad2b282efccadaff9e5f41 to your computer and use it in GitHub Desktop.

Select an option

Save jeffscottbrown/0a770a5db2ad2b282efccadaff9e5f41 to your computer and use it in GitHub Desktop.
~ $ mn create-app --features swagger-java withswagger
| Generating Java project...
| Application created at /Users/jeffbrown/withswagger
~ $
~ $
~ $ mn create-app withoutswagger
| Generating Java project...
| Application created at /Users/jeffbrown/withoutswagger
~ $
~ $
~ $ diff -r withoutswagger/ withswagger/
diff -r withoutswagger/Dockerfile withswagger/Dockerfile
3,4c3,4
< COPY build/libs/*-all.jar withoutswagger.jar
< CMD java ${JAVA_OPTS} -jar withoutswagger.jar
\ No newline at end of file
---
> COPY build/libs/*-all.jar withswagger.jar
> CMD java ${JAVA_OPTS} -jar withswagger.jar
\ No newline at end of file
diff -r withoutswagger/build.gradle withswagger/build.gradle
12c12
< group "withoutswagger"
---
> group "withswagger"
26a27
> annotationProcessor "io.micronaut.configuration:openapi"
28a30,32
> compile "io.swagger.core.v3:swagger-annotations"
> compile "io.micronaut:http-client"
> compile "io.micronaut:http-server-netty"
32,33d35
< compile "io.micronaut:http-client"
< compile "io.micronaut:http-server-netty"
47c49
< mainClassName = "withoutswagger.Application"
---
> mainClassName = "withswagger.Application"
diff -r withoutswagger/micronaut-cli.yml withswagger/micronaut-cli.yml
2c2
< defaultPackage: withoutswagger
---
> defaultPackage: withswagger
Only in withoutswagger/src/main/java: withoutswagger
Only in withswagger/src/main/java: withswagger
diff -r withoutswagger/src/main/resources/application.yml withswagger/src/main/resources/application.yml
3c3
< name: withoutswagger
---
> name: withswagger
Only in withoutswagger/src/test/java: withoutswagger
Only in withswagger/src/test/java: withswagger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment