summaryrefslogtreecommitdiff
path: root/src/main/patch/houston/default.patch
blob: d70b12b6c2899470da0e5f734e9d3a112662c55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

  Custom houston patch to have a "usable" service at all.

  Patch based on "develop" aka
  "3b1275e123c2b7aa2ffaa34270a5e1a373a65993" from "2023-04-27".


diff --git a/pom.xml b/pom.xml
index 0ed4f7f3..b44c5693 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,8 +72,6 @@
         <skip.wagon>false</skip.wagon>
         <skip.copy-dependencies>false</skip.copy-dependencies>
 
-        <!-- spotless -->
-        <source.format.apply.phase>compile</source.format.apply.phase>
     </properties>
 
     <scm>
diff --git a/houston-process/pom.xml b/houston-process/pom.xml
index 374dcb97..3c24937c 100644
--- a/houston-process/pom.xml
+++ b/houston-process/pom.xml
@@ -25,6 +25,26 @@
     </properties>

     <dependencies>
+        <dependency>                              <!-- TODO: Remove -->
+          <groupId>org.slf4j</groupId>            <!-- TODO: Remove -->
+          <artifactId>slf4j-api</artifactId>      <!-- TODO: Remove -->
+          <version>2.0.1</version>                <!-- TODO: Remove -->
+        </dependency>                             <!-- TODO: Remove -->
+        <dependency>                              <!-- TODO: Remove -->
+          <groupId>org.slf4j</groupId>            <!-- TODO: Remove -->
+          <artifactId>slf4j-simple</artifactId>   <!-- TODO: Remove -->
+          <version>2.0.1</version>                <!-- TODO: Remove -->
+        </dependency>                             <!-- TODO: Remove -->
+        <dependency>                              <!-- TODO: Remove -->
+          <groupId>org.slf4j</groupId>            <!-- TODO: Remove -->
+          <artifactId>jcl-over-slf4j</artifactId> <!-- TODO: Remove -->
+          <version>2.0.1</version>                <!-- TODO: Remove -->
+        </dependency>                             <!-- TODO: Remove -->
+        <dependency>                              <!-- TODO: Remove -->
+          <groupId>org.slf4j</groupId>            <!-- TODO: Remove -->
+          <artifactId>jul-to-slf4j</artifactId>   <!-- TODO: Remove -->
+          <version>2.0.1</version>                <!-- TODO: Remove -->
+        </dependency>                             <!-- TODO: Remove -->
         <!-- project -->
         <dependency>
             <groupId>ch.post.it.paisa.houston</groupId>
diff --git a/houston-process/src/main/java/ch/post/it/paisa/houston/process/main/Deployer.java b/houston-process/src/main/java/ch/post/it/paisa/houston/process/main/Deployer.java
index 432efb01..d1729fe9 100644
--- a/houston-process/src/main/java/ch/post/it/paisa/houston/process/main/Deployer.java
+++ b/houston-process/src/main/java/ch/post/it/paisa/houston/process/main/Deployer.java
@@ -68,6 +68,9 @@ public class Deployer {
   private static final Logger LOGGER = LoggerFactory.getLogger(Deployer.class);
 
   public static void main(String[] args) throws Exception {
+    boolean isAssertIsEnabled = false;
+    assert isAssertIsEnabled = true;
+    if (!isAssertIsEnabled) throw new UnsupportedOperationException("Enable assertions to fix this problem -> https://stackoverflow.com/a/68893479/4415884");
     setStartupProperties();
     Props.prepare();
 
@@ -378,7 +378,7 @@ public class Deployer {
                 // All other queues (typically to backend services) with a slow-down pattern after
                 // failed delivery
                 qc.add(
-                    new QueueConfiguration().withPattern(".*").withRetryIntervals(standardDelays));
+                    new QueueConfiguration().withPattern(".*").withRetryIntervals(5/*TODO revert*/));
 
                 RedisquesConfiguration redisquesConfig =
                     RedisquesConfiguration.with()