- Create a Gradle Java project called caching-user-service with the following build.gradle file. Note that we're adding dependencies for Java Persistence API (JPA) and a Java MySQL client library:
group 'com.packtpub.microservices.ch05'version '1.0-SNAPSHOT'buildscript { repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.0.RELEASE") }}apply plugin: 'java'apply plugin: 'org.springframework.boot'sourceCompatibility = 1.8repositories { mavenCentral()}dependencies { compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.0.0.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '2.0.0.RELEASE' ...