-
Notifications
You must be signed in to change notification settings - Fork 0
Maven setup
Paul Sterl edited this page Jan 19, 2025
·
6 revisions
- Maven Central spring-persistent-tasks-core
- Maven Central spring-persistent-tasks-ui
- Maven Central spring-persistent-tasks-db
- Allows the build of triggers
- the execution of tasks
- Adds also REST APIs to manage triggers and list existing tasks
<dependency>
<groupId>org.sterl.spring</groupId>
<artifactId>spring-persistent-tasks-core</artifactId>
<version>1.x.x</version>
</dependency>
@SpringBootApplication
@EnableSpringPersistentTasks
public class ExampleApplication {
Dependency needed to setup the DB using liquibase
<dependency>
<groupId>org.sterl.spring</groupId>
<artifactId>spring-persistent-tasks-db</artifactId>
<version>1.x.x</version>
</dependency>
<include file="spring-persistent-tasks/db.changelog-master.xml" />
<include file="spring-persistent-tasks/db/pt-changelog-v1.xml" />
This dependency adds a spring react default UI to /task-ui. Assuming at least an instance of the spring persistent tasks is available on this node.
<dependency>
<groupId>org.sterl.spring</groupId>
<artifactId>spring-persistent-tasks-ui</artifactId>
<version>1.x.x</version>
</dependency>
@SpringBootApplication
@EnableSpringPersistentTasks
@EnableSpringPersistentTasksUI
public class ExampleApplication {