In the properties section, the configuration must tell Gradle the version of the JDK through the sourceCompatibility property. Another property is the version of the WAR or project deployment, which is at first set to 1.0. Since the mode of deployment is the web, Java must know the name and...
This single line in the build configuration brings a significant amount of power. Run gradle tasks again, and you see new tasks added to the list, including tasks for building the project, creating JavaDoc, and running tests. You’ll use the gradle build task frequently. This task compiles,...
First, we will create an IAM role in Account A, with permissions to access the Kinesis data stream created in the same account. We will also add Account B as a trusted entity to this role. Create IAM policy kds-stock-trade-stream-policy to acces...
Add it to your version control system, and everyone that clones your project can build it just the same. It can be used in the exact same way as an installed version of Gradle. Run the wrapper script to perform the build task, just like you did previously: ./gradlew build The first ...
This single line in the build configuration brings a significant amount of power. Run gradle tasks again, and you see new tasks added to the list, including tasks for building the project, creating JavaDoc, and running tests. You’ll use the gradle build task frequently. This task compiles,...
Here HelloWorld uses Joda Time’s LocalTime class to get and print the current time. If you ran gradle build to build the project now, the build would fail because you have not declared Joda Time as a compile dependency in the build. For starters, you need to add a source for 3rd par...
This single line in the build configuration brings a significant amount of power. Rungradle tasksagain, and you see new tasks added to the list, including tasks for building the project, creating JavaDoc, and running tests. You’ll use thegradle buildtask frequently. This task compiles, tests...
If you ran gradle build to build the project now, the build would fail because you have not declared Joda Time as a compile dependency in the build. For starters, you need to add a source for 3rd party libraries. link:complete/build.gradle[] The repositories block indicates that the build...
This single line in the build configuration brings a significant amount of power. Run gradle tasks again, and you see new tasks added to the list, including tasks for building the project, creating JavaDoc, and running tests. You’ll use the gradle build task frequently. This task compiles,...
Here HelloWorld uses Joda Time’s LocalTime class to get and print the current time. If you ran gradle build to build the project now, the build would fail because you have not declared Joda Time as a compile dependency in the build. For starters, you need to add a source for 3rd par...