From the course: Google Cloud Build: Test, Deploy, and Manage Code

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Testing Java apps

Testing Java apps

- [Instructor] If you like to use a Java programming language for your apps, Google Cloud build supports building and testing Java apps using the Maven and Gradle package managers. Let's see how we can build and test a Java app. The Spring Framework enables us to code a web app in Java. We can create an example app using the Spring Boot extension of the Spring Framework. To do this, we'll make use of a generator from Spring that sets up the app structure. We go to start.spring.il and configure example. Let's use the Maven package manager for Java. We set the Spring Boot version to 2.7.7. Google Cloud build doesn't currently support version three of Spring Boot, but may do so in the future. We enter some metadata. We set the Java version to eight. In the future, Google Cloud Build may support higher Java versions. Let's explore the example files. The source codes is in the SRC directory. There's a template file…

Contents