sample-worker
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.mateu.workflow</groupId>
<artifactId>sample-worker</artifactId>
<version>2.21.0</version>
</dependency><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.mateu.workflow</groupId>
<artifactId>eventconductor</artifactId>
<version>2.21.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<artifactId>sample-worker</artifactId>
<packaging>jar</packaging>
<name>sample-worker</name>
<url>http://maven.apache.org</url>
<properties>
<!-- Coverage floor for this module, just under what it measures today
(a 14-line sample worker, kept out of the floor deliberately). Raise it when the module improves; never lower it. -->
<jacoco.line.minimum>0.00</jacoco.line.minimum>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<!--
This module is the worker people copy, so its dependency list is an example whether it means
to be one or not. It used to carry Mateu's UI (annotation-processor-mvc, mvc-core,
vaadin-lit) and the Kafka Streams binder, none of which any class here imports and none of
which a worker needs — a worker answers task requests, it renders nothing and builds no
topology. The Streams binder was the expensive one: it brings rocksdbjni, 70 MB of native
library, into every image built from this.
-->
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc</artifactId>
<!-- en librería suele ser mejor optional que provided -->
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<!-- en librería suele ser mejor optional que provided -->
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- The Kafka worker runtime: it brings worker-api, the wire contracts, Spring Cloud Stream
and the consumeWorkerEvent binding, so this module carries no hand-wired consumer. -->
<dependency>
<groupId>io.mateu.workflow</groupId>
<artifactId>worker-kafka</artifactId>
<version>2.21.0</version>
</dependency>
<!-- The generated @AutoConfiguration/@Bean annotations (worker-api keeps Spring optional). -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Generate the task types from src/main/resources/tasks/*.ectask before compiling, so
the only thing left to write is the handler below. -->
<plugin>
<groupId>io.mateu.workflow</groupId>
<artifactId>workflow-maven-plugin</artifactId>
<version>2.21.0</version>
<executions>
<execution>
<id>generate-worker-sources</id>
<goals>
<goal>generate-worker-sources</goal>
</goals>
</execution>
</executions>
<configuration>
<basePackage>io.mateu.sample</basePackage>
</configuration>
</plugin>
</plugins>
</build>
</project>