Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graal migration #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.7</version>
<version>3.0.0</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.uci</groupId>
Expand All @@ -17,7 +17,7 @@
<name>utils</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>11</java.version>
<java.version>17</java.version>
<mockwebserver.version>4.7.2</mockwebserver.version>
<okhttp3.version>4.7.2</okhttp3.version>
</properties>
Expand Down Expand Up @@ -87,7 +87,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
<version>1.18.22</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down Expand Up @@ -117,6 +117,7 @@
<dependency>
<groupId>io.r2dbc</groupId>
<artifactId>r2dbc-postgresql</artifactId>
<version>0.8.12.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
Expand Down Expand Up @@ -208,6 +209,18 @@
<artifactId>azure-storage-blob</artifactId>
<version>12.14.4</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-properties-migrator</artifactId>
<version>3.0.3</version>
<scope>runtime</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/jakarta.validation/jakarta.validation-api -->
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
<!-- Azure Dependencies - End -->
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/uci/utils/UtilAppConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class UtilAppConfiguration {
@Value("${spring.redis.db}")
private String redisDb;

@Value("${spring.redis.host}")
@Value("${spring.data.redis.host}")
private String redisHost;

@Value("${spring.redis.number.port}")
Expand Down
19 changes: 2 additions & 17 deletions src/main/java/com/uci/utils/kafka/SimpleProducer.java
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package com.uci.utils.kafka;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.support.SendResult;
import org.springframework.stereotype.Service;
import org.springframework.util.concurrent.ListenableFuture;
import org.springframework.util.concurrent.ListenableFutureCallback;

import javax.validation.constraints.NotNull;
import jakarta.validation.constraints.NotNull;

@Service
@Slf4j
Expand All @@ -24,17 +20,6 @@ public SimpleProducer(KafkaTemplate<String, String> simpleProducer1) {

public void send(String topic, String message) {
simpleProducer
.send(topic, message)
.addCallback(new ListenableFutureCallback<SendResult<String, String>>() {
@Override
public void onFailure(@NotNull Throwable throwable) {
log.error("Unable to push {} to {} topic due to {}", message, topic, throwable.getMessage());
}

@Override
public void onSuccess(SendResult<String, String> stringStringSendResult) {
log.info("Pushed to topic {}", topic);
}
});
.send(topic, message);
}
}