Small refactoring for eclipse (no duplicate project names allowed).
This commit is contained in:
parent
2514d86189
commit
65f022304f
8 changed files with 0 additions and 0 deletions
28
2024/09/plugin_demo1/plugin-demo1-core/pom.xml
Normal file
28
2024/09/plugin_demo1/plugin-demo1-core/pom.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>pl.polgrabia.demos</groupId>
|
||||
<artifactId>plugin-demo1</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>plugin-demo1-core</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.5.6</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -0,0 +1,22 @@
|
|||
package pl.polgrabia.demos;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class PluginRunner {
|
||||
private static final Logger logger = LoggerFactory.getLogger(PluginRunner.class);
|
||||
private final PluginRunnerConfig config;
|
||||
|
||||
public PluginRunner(PluginRunnerConfig config) {
|
||||
this.config = config;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new PluginRunner(new PluginRunnerConfig("1", "2"))
|
||||
.execute();
|
||||
}
|
||||
|
||||
public void execute() {
|
||||
logger.info("Started runner id: {}, name: {}", config.id(), config.name());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
package pl.polgrabia.demos;
|
||||
|
||||
public record PluginRunnerConfig(
|
||||
String id,
|
||||
String name
|
||||
) {
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue