Skip to content

Commit

Permalink
deps: Upgraded spring batch redis
Browse files Browse the repository at this point in the history
  • Loading branch information
jruaux committed May 24, 2024
1 parent da08859 commit 85efc2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
@Command
public abstract class AbstractJobCommand extends AbstractCommand {

public static final String DEFAULT_JOB_REPOSITORY_NAME = "riot";

@ArgGroup(exclusive = false, heading = "Job options%n")
private JobArgs jobArgs = new JobArgs();

private String jobRepositoryName = DEFAULT_JOB_REPOSITORY_NAME;
protected JobRepository jobRepository;
protected PlatformTransactionManager transactionManager;
protected JobLauncher jobLauncher;
Expand Down Expand Up @@ -88,7 +91,7 @@ protected void setup() {
}
if (jobRepository == null) {
try {
jobRepository = JobUtils.jobRepositoryFactoryBean().getObject();
jobRepository = JobUtils.jobRepositoryFactoryBean(jobRepositoryName).getObject();
} catch (Exception e) {
throw new BeanInitializationException("Could not initialize job repository", e);
}
Expand Down Expand Up @@ -228,6 +231,14 @@ public void setJobArgs(JobArgs args) {
this.jobArgs = args;
}

public String getJobRepositoryName() {
return jobRepositoryName;
}

public void setJobRepositoryName(String jobRepositoryName) {
this.jobRepositoryName = jobRepositoryName;
}

public JobRepository getJobRepository() {
return jobRepository;
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ gcpVersion = 1.2.8.RELEASE
globVersion = 0.9.0
latencyUtilsVersion = 2.0.3
lettucemodVersion = 3.8.0
picocliVersion = 4.7.5
picocliVersion = 4.7.6
progressbarVersion = 0.10.1
springBatchRedisVersion = 4.3.4
springBatchRedisVersion = 4.3.5
testcontainersRedisVersion = 2.2.2

org.gradle.daemon = false
Expand Down

0 comments on commit 85efc2d

Please sign in to comment.