File tree 3 files changed +14
-6
lines changed
cobigen/cobigen-jsonplugin
src/main/java/com/devonfw/cobigen/jsonplugin
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<artifactId >jsonplugin</artifactId >
4
4
<name >CobiGen - JSON Plug-in</name >
5
- <version >2.1 .0</version >
5
+ <version >7.0 .0</version >
6
6
<packaging >jar</packaging >
7
7
<description >CobiGen - JSON Plug-in</description >
8
8
20
20
<dependency >
21
21
<groupId >com.devonfw.cobigen</groupId >
22
22
<artifactId >core-api</artifactId >
23
- <version >5 .0.0</version >
23
+ <version >[7 .0.0,) </version >
24
24
</dependency >
25
25
<dependency >
26
26
<groupId >com.devonfw.cobigen</groupId >
27
27
<artifactId >core-test</artifactId >
28
- <version >5 .0.0</version >
28
+ <version >[7 .0.0,) </version >
29
29
<scope >test</scope >
30
30
</dependency >
31
31
<!-- https://mvnrepository.com/artifact/commons-io/commons-io -->
Original file line number Diff line number Diff line change 2
2
3
3
import java .util .List ;
4
4
5
+ import com .devonfw .cobigen .api .annotation .Activation ;
5
6
import com .devonfw .cobigen .api .extension .GeneratorPluginActivator ;
6
7
import com .devonfw .cobigen .api .extension .Merger ;
7
8
import com .devonfw .cobigen .api .extension .TriggerInterpreter ;
11
12
/**
12
13
* JSON Plug-in Activator to be registered in the PluginRegistry of CobiGen.
13
14
*/
15
+ @ Activation (byMergeStrategy = { JSONPluginActivator .JSONMERGE , JSONPluginActivator .JSONMERGE_OVERRIDE })
14
16
public class JSONPluginActivator implements GeneratorPluginActivator {
15
17
18
+ /** JSON merge (prefer patch) */
19
+ static final String JSONMERGE_OVERRIDE = "jsonmerge_override" ;
20
+
21
+ /** JSON merge (prefer base) */
22
+ static final String JSONMERGE = "jsonmerge" ;
23
+
16
24
@ Override
17
25
public List <Merger > bindMerger () {
18
26
List <Merger > merger = Lists .newLinkedList ();
19
- merger .add (new JSONMerger ("jsonmerge" , false ));
20
- merger .add (new JSONMerger ("jsonmerge_override" , true ));
27
+ merger .add (new JSONMerger (JSONMERGE , false ));
28
+ merger .add (new JSONMerger (JSONMERGE_OVERRIDE , true ));
21
29
return merger ;
22
30
}
23
31
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ DISCLAIMER: All Cobigen plugins are compatible with the latest release of Devonf
23
23
* CobiGen - TypeScript Plug-in v2.4.4
24
24
* CobiGen - Property Plug-in v2.1.0
25
25
* CobiGen - Text Merger v2.1.0
26
- * CobiGen - JSON Plug-in v2.1 .0
26
+ * CobiGen - JSON Plug-in v7.0 .0
27
27
* CobiGen - HTML Plug-in v2.1.0
28
28
* CobiGen - Open API Plug-in v2.4.0
29
29
* CobiGen - FreeMaker Template Engine v7.0.0
You can’t perform that action at this time.
0 commit comments