Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDEA 2021.3 开发配置文件 #1

Open
fuzhengwei opened this issue Dec 16, 2021 · 1 comment
Open

IDEA 2021.3 开发配置文件 #1

fuzhengwei opened this issue Dec 16, 2021 · 1 comment

Comments

@fuzhengwei
Copy link
Owner

fuzhengwei commented Dec 16, 2021

plugins {
    id 'org.jetbrains.intellij' version '1.0'
    id 'java'
}

group 'cn.bugstack.guide.idea.plugin'
version '1.4'

repositories {
    mavenCentral()
}

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
    version = '2021.3'
    plugins = ['com.intellij.java'] //plugins 'java'
    updateSinceUntilBuild false
}

tasks.withType(JavaCompile) {
    options.encoding = 'UTF-8'
}

tasks.withType(Javadoc) {
    options.encoding = 'UTF-8'
}

patchPluginXml {
    changeNotes = """
      Add change notes here.<br>
      <em>most HTML tags may be used</em>"""
}

test {
    useJUnitPlatform()
}
@fuzhengwei
Copy link
Owner Author

fuzhengwei commented Dec 16, 2021

<idea-plugin>
    <id>com.jd.idea.plugin.vo2dto</id>
    <name>Vo2Dto</name>
    <vendor email="184172133@qq.com" url="https://bugstack.cn">小傅哥</vendor>

    <description><![CDATA[
      选定对象批量织入“x.set(y.get)”代码,自动生成vo2dto<br>
      <em>1. 获取上下文信息(也就是工程对象)</em>
      <em>2. 给当前锚点位置的类提取 set 方法集合</em>
      <em>3. 之后在给Ctrl+C剪切板上的信息读取出来提取 get 方法集合</em>
      <em>4. 把set、get进行组合并织入代码到锚点位置</em>
    ]]></description>

   <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
   <idea-version since-build="173.0"/>

    <!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
         on how to target different products -->
    <depends>com.intellij.modules.platform</depends>
    <depends>com.intellij.modules.lang</depends>
    <depends>com.intellij.modules.java</depends>

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

    <actions>
        <!-- Add your actions here -->
        <action id="Vo2DtoAction" class="cn.bugstack.guide.idea.plugin.action.Vo2DtoAction"
                text="Vo2Dto - 小傅哥" description="Vo2Dto generate util" icon="/icons/logo.svg">
            <add-to-group group-id="GenerateGroup" anchor="last"/>
            <keyboard-shortcut keymap="$default" first-keystroke="ctrl shift K"/>
        </action>
    </actions>

</idea-plugin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant