Skip to content

Commit

Permalink
Make Quarkus build pass
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Dec 4, 2022
1 parent df64d12 commit 3e83b0b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cdi/test/quarkus-test/src/main/java/QuarkusProdConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import net.javacrumbs.shedlock.core.LockConfiguration;
import net.javacrumbs.shedlock.core.LockProvider;
import net.javacrumbs.shedlock.core.SimpleLock;

import javax.enterprise.inject.Produces;
import javax.inject.Singleton;
import java.util.Optional;

/*
* Just to make the build to pass
*/
public class QuarkusProdConfig {
@Produces
@Singleton
public LockProvider lockProvider() {
return new LockProvider() {
@Override
public Optional<SimpleLock> lock(LockConfiguration lockConfiguration) {
return Optional.empty();
}
};
}
}

0 comments on commit 3e83b0b

Please sign in to comment.