Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gradle-example
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leona
I
idea
plugin
gradle-example
Commits
5131f371
Commit
5131f371
authored
Oct 15, 2019
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
2c81a7fb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
9 deletions
+14
-9
build.gradle
build.gradle
+0
-2
plugin-gradle/build.gradle
plugin-gradle/build.gradle
+6
-7
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/action/HelloAction.java
.../duanledexianxianxian/plugin/idea/action/HelloAction.java
+1
-0
plugin-gradle/src/main/resources/META-INF/plugin.xml
plugin-gradle/src/main/resources/META-INF/plugin.xml
+7
-0
No files found.
build.gradle
View file @
5131f371
...
...
@@ -13,6 +13,4 @@ allprojects {
dependencies
{
testCompile
group:
'junit'
,
name:
'junit'
,
version:
'4.12'
compile
group:
'org.projectlombok'
,
name:
'lombok'
,
version:
'1.18.10'
compile
group:
'com.mchange'
,
name:
'c3p0'
,
version:
'0.9.5.4'
}
plugin-gradle/build.gradle
View file @
5131f371
buildscript
{
dependencies
{
classpath
group:
'gradle.plugin.org.jetbrains.intellij.plugins'
,
name:
'gradle-intellij-plugin'
,
version:
'0.4.10'
}
}
plugins
{
id
'java'
id
'org.jetbrains.intellij'
version
'0.4.10'
...
...
@@ -5,13 +11,6 @@ plugins {
group
'com.duanledexianxianxian'
version
'1.0-SNAPSHOT'
sourceCompatibility
=
1.8
repositories
{
mavenCentral
()
}
dependencies
{
testCompile
group:
'junit'
,
name:
'junit'
,
version:
'4.12'
}
...
...
plugin-gradle/src/main/java/com/duanledexianxianxian/plugin/idea/action/HelloAction.java
View file @
5131f371
...
...
@@ -13,6 +13,7 @@ public class HelloAction extends AnAction {
super
(
"Hello"
);
}
@Override
public
void
actionPerformed
(
AnActionEvent
event
)
{
Project
project
=
event
.
getProject
();
Messages
.
showMessageDialog
(
project
,
"Hello world!"
,
"Greeting"
,
Messages
.
getInformationIcon
());
...
...
plugin-gradle/src/main/resources/META-INF/plugin.xml
View file @
5131f371
...
...
@@ -12,6 +12,9 @@
<!-- uncomment to enable plugin in all products
<depends>com.intellij.modules.lang</depends>
-->
<depends>
com.intellij.modules.platform
</depends>
<depends
optional=
"true"
>
com.intellij.modules.ultimate
</depends>
<depends>
com.intellij.database
</depends>
<extensions
defaultExtensionNs=
"com.intellij"
>
<!-- Add your extensions here -->
...
...
@@ -23,5 +26,9 @@
<add-to-group
group-id=
"MainMenu"
anchor=
"last"
/>
<action
id=
"Myplugin.Textboxes"
class=
"com.duanledexianxianxian.plugin.idea.action.HelloAction"
text=
"Hello"
description=
"Says hello"
/>
</group>
<action
id=
"mabatis-plus-generate-action"
class=
"com.duanledexianxianxian.plugin.idea.action.HelloAction"
text=
"mybatis-plus-generate"
description=
"mybatis generator idea plugin"
>
<add-to-group
group-id=
"DatabaseViewPopupMenu"
anchor=
"last"
/>
</action>
</actions>
</idea-plugin>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment