Skip to content

Commit 7b1cd6e

Browse files
committed
upgrade to version 1.4
1 parent ebe6896 commit 7b1cd6e

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@ A idea-plugin for Java/Scala to generate code, support custom code template.
33

44
![demonstration](https://blog.xiaohansong.com/media/15473672636863/15473884273212.gif)
55

6-
This plugin generates code from right click 'Generate...' menu while focused on a Java/Scala class. The output class can be customized using a provided velocity template to format the code based on the origin class and optional selected classes.</p>
6+
This plugin generates code from right click 'Generate...' menu while focused on a Java/Scala class. The output class can be customized using a provided velocity template to format the code based on the origin class and optional selected classes. There are many features are contributed by [Dmitry Karlinsky](https://github.com/dkarlinsky) and I appreciate that.
77

88
The following features are available:
99

10+
- Support add custom template to generate more code.(Velocity templates and groovy templates)
1011
- Generate the model class for the persistent class.
1112
- Generate the converter class for the model class and the persistent class.
12-
- Support add custom template to generate more code.
1313
- Generate `@see` doc for override method.
1414
- Support Scala.
1515
- Generate api table from code
1616

1717
# Install
18-
1. Search 'CodeMaker' in Idea plugins
19-
2. Download [Releases](https://github.com/x-hansong/CodeMaker/releases)
18+
## Option 1
19+
- Search 'CodeMaker' in Idea plugins repository.
20+
21+
## Option 2
22+
Download [Releases](https://github.com/x-hansong/CodeMaker/releases)
2023

2124
To install a plugin from the disk in idea
2225

build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ repositories {
1616
}
1717

1818
dependencies {
19-
compile group: 'org.projectlombok', name: 'lombok', version: '1.16.14'
19+
compileOnly 'org.projectlombok:lombok:1.18.8'
20+
annotationProcessor 'org.projectlombok:lombok:1.18.8'
2021
compile group: 'commons-io', name: 'commons-io', version: '2.5'
2122
testCompile("io.kotlintest:kotlintest-runner-junit5:3.3.2")
22-
testCompile "io.mockk:mockk:v1.9.3"
23+
testCompile "io.mockk:mockk:1.9.3"
2324
}
2425

2526
apply plugin: 'java'
@@ -34,5 +35,5 @@ intellij {
3435
}
3536

3637
group 'com.xiaohansong'
37-
version '1.6'
38+
version '1.4'
3839

src/main/resources/META-INF/plugin.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<idea-plugin>
22
<id>com.xiaohansong.codemaker</id>
33
<name>CodeMaker</name>
4-
<version>1.3</version>
4+
<version>1.4</version>
55
<vendor email="[email protected]" url="https://github.com/x-hansong/CodeMaker">Personal</vendor>
66

77
<description><![CDATA[
88
<p>This plugin generates code from right click 'Generate...' menu while focused
99
on a java/scala class. The output class can be customized using a provided velocity template to format
10-
the code based on the origin class and optional selected classes.</p>
10+
the code based on the origin class and optional selected classes. There are many features are contribute
11+
by Dmitry Karlinsky and I appreciate that.</p>
1112
<p>The following features are available: </p>
1213
<ul>
14+
<li>Support add custom template to generate codes.(Velocity templates and groovy templates)</li>
1315
<li>Generate the model class for the persistent class.</li>
1416
<li>Generate the converter class for the model class and the persistent class.</li>
15-
<li>Support add custom template to generate more code.</li>
1617
<li>Generate @see doc for override method</li>
1718
<li>Generate Api table to clipboard (html or markdown format)</li>
1819
<li>Generate the class field from api table in clipboard</li>
@@ -31,10 +32,17 @@
3132
Support selecting destination source root for the generated class. Thanks to @dkarlinsky<br>
3233
Support custom the generate file encoding<br>
3334
</li>
34-
<li>version 1.3<br>
35+
<li>version 1.3<br>
3536
Support generate api table for the class fields and paste it to the clipboard (html or markdown format)
3637
Support generate the class fields from the api table in clipboard
3738
</li>
39+
<li>version 1.4 (New features are contributed by Dmitry Karlinsky.)<br>
40+
Support for groovy templates (similar to GSP, based on GStringTemplateEngine)<br>
41+
Templates editor screen reworked.<br>
42+
Added target language selector, per template.<br>
43+
Added "test template" functionality based on selectable test inputs, currently Java class and Scala case class.<br>
44+
Added Kotlin support to the build and refactored out some logic and UI to Kotlin classes<br>
45+
</li>
3846
</ul>
3947
]]>
4048
</change-notes>
@@ -48,7 +56,7 @@
4856
<depends>com.intellij.modules.lang</depends>
4957
-->
5058
<depends>com.intellij.modules.java</depends>
51-
<depends optional="true">org.intellij.scala</depends>
59+
<depends optional="true" config-file="">org.intellij.scala</depends>
5260

5361
<extensions defaultExtensionNs="com.intellij">
5462
<!-- Add your extensions here -->

0 commit comments

Comments
 (0)