Gradle just like maven it is based on build by convention. But these conventions are easily overridable.
Supports both Ivy and Maven dependencies
Gradle is a declarative build language where we tell gradle what to do
Easily readable and undetstandable.
DSL is one of Gradle's strength.
1. Run the Gradle build with a command line argument
--warning-mode=all
to see what exactly the deprecated features are.
- C:\>gradlew clean build --warning-mode=all
C:\Workspaces>gradlew clean build --warning-mode=all Welcome to Gradle 6.3! Here are the highlights of this release: - Java 14 support - Improved error messages for unexpected failures For more details see https://docs.gradle.org/6.3/release-notes.html Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details > Configure project : The AbstractArchiveTask.version property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveVersion property instead. See https://docs.gradle.org/6.3/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.ta sks.bundling.AbstractArchiveTask:version for more details. at build_ciblh0x8nu74tplc1w7t4quio$_run_closure1$_closure5.doCall(C:\Workspaces\xSightReportBuilder\build.gradle:38) (Run with --stacktrace to get the full stack trace of this deprecation warning.) The compile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the implementation configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.3/userguide/upg rading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations at build_ciblh0x8nu74tplc1w7t4quio$_run_closure4.doCall(C:\Workspaces\xSightReportBuilder\build.gradle:61) (Run with --stacktrace to get the full stack trace of this deprecation warning.) > Task :compileJava Note: C:\Workspaces\xSightReportBuilder\src\main\java\com\bhge\xsight\reportbuilder\util\Util.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. > Task :test 2020-05-19 11:24:35.637 INFO 22488 --- [ Thread-11] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2020-05-19 11:24:35.656 INFO 22488 --- [ Thread-11] c.c.c.core.config.ConfigurationProvider : Closed bucket SightDev1 2020-05-19 11:24:35.656 INFO 22488 --- [ cb-io-1-1] com.couchbase.client.core.node.Node : Disconnected from Node 2020-05-19 11:24:35.696 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown kvIoPool: success 2020-05-19 11:24:35.696 INFO 22488 --- [entExecutor-2-1] c.c.client.core.env.CoreEnvironment : Shutdown IoPool: success 2020-05-19 11:24:35.697 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown viewIoPool: success 2020-05-19 11:24:35.697 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown queryIoPool: success 2020-05-19 11:24:35.697 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown searchIoPool: success 2020-05-19 11:24:35.697 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown Core Scheduler: success 2020-05-19 11:24:35.697 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown Runtime Metrics Collector: success 2020-05-19 11:24:35.698 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown Latency Metrics Collector: success 2020-05-19 11:24:35.698 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown analyticsIoPool: success 2020-05-19 11:24:35.698 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown Tracer: success 2020-05-19 11:24:35.698 INFO 22488 --- [ Thread-11] c.c.client.core.env.CoreEnvironment : Shutdown OrphanReporter: success 2020-05-19 11:24:35.700 INFO 22488 --- [ Thread-12] c.c.client.core.env.CoreEnvironment : Shutdown Netty: success BUILD SUCCESSFUL in 55s 6 actionable tasks: 6 executed
2. gradle run --stacktrace
Prints out all the stacktrace
3. For running spring boot application
gradle bootRun --stacktrace
No comments:
Post a Comment