Skip to content

Commit e0f4cab

Browse files
committed
added pom.xml plugins and properties and fixed readme.md
1 parent 9d33b16 commit e0f4cab

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed

bloC/Readme.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ The Bloc pattern manages the state of an object and allows for dynamically notif
3939

4040
## Programmatic Example of the Bloc Pattern in Java
4141

42-
### 1. `Troll` Analogy Using Bloc
43-
44-
Imagine a simple state-driven system that maintains a counter. Whenever the counter changes, any registered listener receives updates dynamically.
45-
46-
---
47-
4842
### **Core Components of the Bloc Pattern**
4943

5044
#### **1. State Object**

bloC/pom.xml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
<version>1.26.0-SNAPSHOT</version>
1010
</parent>
1111
<artifactId>bloC</artifactId>
12-
<properties>
13-
<maven.compiler.source>17</maven.compiler.source>
14-
<maven.compiler.target>17</maven.compiler.target>
15-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
</properties>
1712
<dependencies>
1813
<dependency>
1914
<groupId>org.junit.jupiter</groupId>
@@ -23,17 +18,12 @@
2318
<dependency>
2419
<groupId>org.testng</groupId>
2520
<artifactId>testng</artifactId>
26-
<version>RELEASE</version>
27-
<scope>test</scope>
28-
</dependency>
29-
<dependency>
30-
<groupId>junit</groupId>
31-
<artifactId>junit</artifactId>
3221
<scope>test</scope>
3322
</dependency>
3423
<dependency>
3524
<groupId>org.assertj</groupId>
3625
<artifactId>assertj-core</artifactId>
26+
<version>3.24.2</version>
3727
<scope>test</scope>
3828
</dependency>
3929
<dependency>
@@ -42,4 +32,31 @@
4232
<scope>test</scope>
4333
</dependency>
4434
</dependencies>
45-
</project>
35+
<build>
36+
<plugins>
37+
<plugin>
38+
<groupId>org.apache.maven.plugins</groupId>
39+
<artifactId>maven-assembly-plugin</artifactId>
40+
<configuration>
41+
<archive>
42+
<manifest>
43+
<mainClass>com.iluwatar.bloC.App</mainClass>
44+
</manifest>
45+
</archive>
46+
<descriptorRefs>
47+
<descriptorRef>jar-with-dependencies</descriptorRef>
48+
</descriptorRefs>
49+
</configuration>
50+
<executions>
51+
<execution>
52+
<id>make-assembly</id>
53+
<phase>package</phase>
54+
<goals>
55+
<goal>single</goal>
56+
</goals>
57+
</execution>
58+
</executions>
59+
</plugin>
60+
</plugins>
61+
</build>
62+
</project>

0 commit comments

Comments
 (0)