【IDEA插件开发】环境搭建
创始人
2025-05-29 20:47:04
0

基础信息

GRADLE

7.5.1

IDEA

IntelliJ IDEA 2020.1.1 (Ultimate Edition)
Build #IU-201.7223.91, built on April 30, 2020
Licensed to https://zhile.io
You have a perpetual fallback license for this version
Subscription is active until July 8, 2089
Runtime version: 11.0.6+8-b765.40 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1978M
Cores: 6
Non-Bundled Plugins: Lombook Plugin, org.intellij.gitee, com.piegoesmoo.escape, com.materkey.codepoints, MavenRunHelper, org.jetbrains.kotlin, cn.wuzhizhan.plugin.mybatis

配置gradle

  1. 配置环境变量, 如: GRADLE_HOME, PATH, GRADLE_USER_HOME

  2. 配置全局${GRADLE_USER_HOME}/init.gradle: https://blog.csdn.net/Young4Dream/article/details/98872523#comments_25589677

创建项目

在这里插入图片描述

配置

  1. 修改build.gradle

    plugins {id 'java'id 'org.jetbrains.intellij' version '1.13.2'
    }group 'org.example'
    version '1.0-SNAPSHOT'repositories {mavenCentral()
    }dependencies {testImplementation group: 'junit', name: 'junit', version: '4.12'
    }// See https://github.com/JetBrains/gradle-intellij-plugin/
    intellij {version='2020.1.1'
    }
    patchPluginXml {changeNotes = """Add change notes here.
    most HTML tags may be used""" }
  2. 配置项目settings.gradle

    pluginManagement {repositories {maven {setUrl("https://maven.aliyun.com/repository/gradle-plugin")}maven {url 'https://oss.sonatype.org/content/repositories/snapshots/'}gradlePluginPortal()mavenCentral()}
    }
    rootProject.name = 'idea-plugin-example'
    

此时基本的插件开发环境就搭建好了, 此时项目结构如下:

在这里插入图片描述

参考

  1. IDEA2020.3.4开发插件创建项目报错

相关内容

热门资讯

AWSECS:访问外部网络时出... 如果您在AWS ECS中部署了应用程序,并且该应用程序需要访问外部网络,但是无法正常访问,可能是因为...
AWSElasticBeans... 在Dockerfile中手动配置nginx反向代理。例如,在Dockerfile中添加以下代码:FR...
银河麒麟V10SP1高级服务器... 银河麒麟高级服务器操作系统简介: 银河麒麟高级服务器操作系统V10是针对企业级关键业务...
北信源内网安全管理卸载 北信源内网安全管理是一款网络安全管理软件,主要用于保护内网安全。在日常使用过程中,卸载该软件是一种常...
AWR报告解读 WORKLOAD REPOSITORY PDB report (PDB snapshots) AW...
AWS管理控制台菜单和权限 要在AWS管理控制台中创建菜单和权限,您可以使用AWS Identity and Access Ma...
​ToDesk 远程工具安装及... 目录 前言 ToDesk 优势 ToDesk 下载安装 ToDesk 功能展示 文件传输 设备链接 ...
群晖外网访问终极解决方法:IP... 写在前面的话 受够了群晖的quickconnet的小水管了,急需一个新的解决方法&#x...
不能访问光猫的的管理页面 光猫是现代家庭宽带网络的重要组成部分,它可以提供高速稳定的网络连接。但是,有时候我们会遇到不能访问光...
Azure构建流程(Power... 这可能是由于配置错误导致的问题。请检查构建流程任务中的“发布构建制品”步骤,确保正确配置了“Arti...