<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
- <version>2.1.7.RELEASE</version>
+ <version>2.2.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
- <version>9.0.24</version>
+ <version>9.0.30</version>
</dependency>
<dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
- <version>2.9.9.3</version>
+ <version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>com.squareup.retrofit2</groupId>
+ <artifactId>retrofit</artifactId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
- <version>3.14.2</version>
+ <version>4.3.1</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>com.squareup.retrofit2</groupId>
+ <artifactId>retrofit</artifactId>
+ <version>2.7.1</version>
+ </dependency>
<!-- karate -->
String limitString = limits.get(0);
int offset = Integer.parseInt(offsetString);
int limit = Integer.parseInt(limitString);
- final Pageable pageableRequest = new PageRequest(offset, limit);
+ final Pageable pageableRequest = PageRequest.of(offset, limit);
query.with(pageableRequest);
} else if (!CollectionUtils.isEmpty(limits)) {
String limitString = limits.get(0);
int limit = Integer.parseInt(limitString);
- final Pageable pageableRequest = new PageRequest(0, limit);
+ final Pageable pageableRequest = PageRequest.of(0, limit);
query.with(pageableRequest);
}
}