$ gradlew build
Welcome to Gradle 6.8.3!
Here are the highlights of this release:
- Faster Kotlin DSL script compilation
- Vendor selection for Java toolchains
- Convenient execution of tasks in composite builds
- Consistent dependency resolution
For more details see https://docs.gradle.org/6.8.3/release-notes.html
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Task :test
2021-04-12 00:28:06.153 INFO 12948 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
BUILD SUCCESSFUL in 1m 37s
6 actionable tasks: 6 executed
다음처럼 build를 수행하면 프로젝트 하위에 build({project명}/build/ )가 생성된 것을 볼 수 있다.
$ cd ./build/libs
$ ls -trl
total 36712
-rw-r--r-- 1 dh0023 staff 18794659 4 12 00:27 spring-mvc-0.0.1-SNAPSHOT.jar
/builds/libs 하위에 jar파일이 생성된 것을 볼 수 있으며,
$ java -jar ./spring-mvc-0.0.1-SNAPSHOT.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.4)
2021-04-12 00:29:14.647 INFO 14240 --- [ main] dh0023.springmvc.SpringMvcApplication : Starting SpringMvcApplication using Java 15.0.2 on dahyeui-MacBook-Pro.local with PID 14240 (/Users/dh0023/Develop/spring/spring-mvc/build/libs/spring-mvc-0.0.1-SNAPSHOT.jar started by dh0023 in /Users/dh0023/Develop/spring/spring-mvc/build/libs)
2021-04-12 00:29:14.653 INFO 14240 --- [ main] dh0023.springmvc.SpringMvcApplication : No active profile set, falling back to default profiles: default
2021-04-12 00:29:15.049 INFO 14240 --- [ main] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2021-04-12 00:29:20.242 INFO 14240 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-04-12 00:29:20.287 INFO 14240 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-04-12 00:29:20.288 INFO 14240 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-04-12 00:29:20.673 INFO 14240 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-04-12 00:29:20.674 INFO 14240 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5622 ms
2021-04-12 00:29:21.827 INFO 14240 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-12 00:29:23.268 INFO 14240 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2021-04-12 00:29:23.294 INFO 14240 --- [ main] dh0023.springmvc.SpringMvcApplication : Started SpringMvcApplication in 12.135 seconds (JVM running for 14.029)