File tree 4 files changed +17
-12
lines changed
cobigen/cobigen-templateengines/cobigen-tempeng-freemarker
src/main/java/com/devonfw/cobigen/tempeng/freemarker
4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 2
2
<modelVersion >4.0.0</modelVersion >
3
3
<artifactId >tempeng-freemarker</artifactId >
4
4
<name >CobiGen - FreeMarker Template Engine</name >
5
- <version >2.1 .0</version >
5
+ <version >7.0 .0</version >
6
6
<packaging >jar</packaging >
7
7
<description >CobiGen - FreeMarker Template Engine</description >
8
8
21
21
<dependency >
22
22
<groupId >com.devonfw.cobigen</groupId >
23
23
<artifactId >core-api</artifactId >
24
- <version >5 .0.0</version >
24
+ <version >7 .0.0</version >
25
25
</dependency >
26
26
<dependency >
27
27
<groupId >com.devonfw.cobigen</groupId >
28
28
<artifactId >core-test</artifactId >
29
- <version >5 .0.0</version >
29
+ <version >7 .0.0</version >
30
30
<scope >test</scope >
31
31
</dependency >
32
32
Original file line number Diff line number Diff line change 4
4
import java .nio .file .Path ;
5
5
import java .util .Map ;
6
6
7
+ import com .devonfw .cobigen .api .annotation .Name ;
7
8
import com .devonfw .cobigen .api .exception .CobiGenRuntimeException ;
8
9
import com .devonfw .cobigen .api .extension .TextTemplate ;
9
10
import com .devonfw .cobigen .api .extension .TextTemplateEngine ;
20
21
/**
21
22
* {@link TextTemplateEngine} implementation for Apache FreeMarker.
22
23
*/
24
+ @ Name ("FreeMarker" )
23
25
public class FreeMarkerTemplateEngine implements TextTemplateEngine {
24
26
25
- /** Template Engine name */
26
- private static final String ENGINE_NAME = "FreeMarker" ;
27
-
28
27
/** The file extension of the template files. */
29
28
private static final String TEMPLATE_EXTENSION = ".ftl" ;
30
29
@@ -44,11 +43,6 @@ public FreeMarkerTemplateEngine() {
44
43
freeMarkerConfig .setCacheStorage (new NullCacheStorage ());
45
44
}
46
45
47
- @ Override
48
- public String getName () {
49
- return ENGINE_NAME ;
50
- }
51
-
52
46
@ Override
53
47
public String getTemplateFileEnding () {
54
48
return TEMPLATE_EXTENSION ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ DISCLAIMER: All Cobigen plugins are compatible with the latest release of Devonf
26
26
* CobiGen - JSON Plug-in v2.1.0
27
27
* CobiGen - HTML Plug-in v2.1.0
28
28
* CobiGen - Open API Plug-in v2.4.0
29
- * CobiGen - FreeMaker Template Engine v2.1 .0
29
+ * CobiGen - FreeMaker Template Engine v7.0 .0
30
30
* CobiGen - Velocity Template Engine v2.0.1
31
31
32
32
**Authors:**
Original file line number Diff line number Diff line change 356
356
</goals >
357
357
</execution >
358
358
</executions >
359
+ </plugin >
360
+ <plugin >
361
+ <groupId >org.sonatype.plugins</groupId >
362
+ <artifactId >nexus-staging-maven-plugin</artifactId >
363
+ <version >1.6.3</version >
364
+ <extensions >true</extensions >
365
+ <configuration >
366
+ <serverId >sonartype.releases</serverId >
367
+ <nexusUrl >https://oss.sonatype.org/</nexusUrl >
368
+ <autoReleaseAfterClose >false</autoReleaseAfterClose >
369
+ </configuration >
359
370
</plugin >
360
371
</plugins >
361
372
</build >
You can’t perform that action at this time.
0 commit comments