summaryrefslogtreecommitdiff
path: root/src/main/paisa-nonslim/patches/platform.patch
blob: 12578960484c6fdbb5197c34c971c1dd796bfb65 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

  20240812 now based on the java-21 branch, no longer on develop.


  Only here because patch file cannot be empty
--- a/poms/service/paisa-service-superpom/pom.xml
+++ b/poms/service/paisa-service-superpom/pom.xml
@@ -1,7 +1,7 @@
 <?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/maven-v4_0_0.xsd">
-    <modelVersion>4.0.0</modelVersion>
+    <modelVersion>4.0.0</modelVersion>
     <parent>
         <artifactId>paisa-superpom</artifactId>
         <groupId>ch.post.it.paisa</groupId>


--- a/poms/service/paisa-service-superpom/pom.xml
+++ b/poms/service/paisa-service-superpom/pom.xml
@@ -271,6 +271,54 @@
                 <groupId>org.jfrog.buildinfo</groupId>
                 <artifactId>artifactory-maven-plugin</artifactId>
             </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.gmaven</groupId>
+                <artifactId>groovy-maven-plugin</artifactId>
+                <version>2.1.1</version>
+                <executions>
+                    <execution>
+                        <phase>prepare-package</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <properties>
+                                <!--
+                                    Don't you DARE add slf4j here. If you do, the services in a
+                                    constellation won't start up! So be mindful and DON'T add it.
+                                -->
+                                <slimArtifacts>
+                                    io.github.java-native:jssc
+                                </slimArtifacts>
+                            </properties>
+                            <source>
+                                import java.nio.file.*
+
+                                Path slimLibPath = Paths.get(project.build.directory + "/lib/");
+                                slimLibPath.toFile().mkdirs();
+
+                                def slimArtifacts = properties.slimArtifacts.split("\\s+");
+                                println("Group:Artefacts to be SLIMmed: " + slimArtifacts)
+                                project.artifacts.each { af -&gt;
+                                    def key = af.groupId + ":" + af.artifactId
+                                    printf("SLIMmed? %-70s", key)
+                                    if (slimArtifacts.contains(key)) {
+                                        println(" --&gt; yes (set scope to 'provided' and copy JAR to target/lib/)")
+                                        af.scope = "provided"
+                                        Path copyFrom = af.file.toPath();
+                                        Path copyTo = slimLibPath.resolve(af.file.name);
+                                        //println(copyFrom.toString() + " --&gt; " + copyTo.toString())
+                                        Files.copy(copyFrom, copyTo, StandardCopyOption.REPLACE_EXISTING);
+                                    } else {
+                                        println(" --&gt; no")
+                                    }
+                                }
+                            </source>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
 
         <pluginManagement>


--- a/poms/service/paisa-service-superpom/pom.xml
+++ b/poms/service/paisa-service-superpom/pom.xml
@@ -882,53 +930,6 @@
             <id>slim</id>
             <build>
                 <plugins>
-                    <plugin>
-                        <groupId>org.codehaus.gmaven</groupId>
-                        <artifactId>groovy-maven-plugin</artifactId>
-                        <version>2.1.1</version>
-                        <executions>
-                            <execution>
-                                <phase>prepare-package</phase>
-                                <goals>
-                                    <goal>execute</goal>
-                                </goals>
-                                <configuration>
-                                    <properties>
-                                        <!--
-                                            Don't you DARE add slf4j here. If you do, the services in a
-                                            constellation won't start up! So be mindful and DON'T add it.
-                                        -->
-                                        <slimArtifacts>
-                                            io.github.java-native:jssc
-                                        </slimArtifacts>
-                                    </properties>
-                                    <source>
-                                        import java.nio.file.*
-
-                                        Path slimLibPath = Paths.get(project.build.directory + "/lib/");
-                                        slimLibPath.toFile().mkdirs();
-
-                                        def slimArtifacts = properties.slimArtifacts.split("\\s+");
-                                        println("Group:Artefacts to be SLIMmed: " + slimArtifacts)
-                                        project.artifacts.each { af -&gt;
-                                            def key = af.groupId + ":" + af.artifactId
-                                            printf("SLIMmed? %-70s", key)
-                                            if (slimArtifacts.contains(key)) {
-                                                println(" --&gt; yes (set scope to 'provided' and copy JAR to target/lib/)")
-                                                af.scope = "provided"
-                                                Path copyFrom = af.file.toPath();
-                                                Path copyTo = slimLibPath.resolve(af.file.name);
-                                                //println(copyFrom.toString() + " --&gt; " + copyTo.toString())
-                                                Files.copy(copyFrom, copyTo, StandardCopyOption.REPLACE_EXISTING);
-                                            } else {
-                                                println(" --&gt; no")
-                                            }
-                                        }
-                                    </source>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
                 </plugins>
             </build>
         </profile>