通过向导创建插件项目

这里通过Gradle来构建项目

  • 通过向导创建项目
    IntellijIdea插件开发-插件项目创建
  • 修改build.gradle文件
plugins {
    id 'org.jetbrains.intellij' version '0.3.12'
}

group 'cn.xo68'
version '1.0'

sourceCompatibility = 1.8
# 修改maven仓库
repositories {
    mavenLocal()
    maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}

dependencies {
    compile fileTree(dir:'libs',include:['*.jar'])
    compile "com.squareup.okhttp3:okhttp:3.9.1"
    compile "mysql:mysql-connector-java:5.1.38"
    compile "com.wy2:wy2-generator:2.0.0"
    compile project(':wx-tool-suite-idea-common')
    testCompile group: 'junit', name: 'junit', version: '4.12'
}

# 添加使用插件
apply plugin: 'idea'
apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'

# 设置intellij相关配置
intellij {
    version '2018.2.5'
    sandboxDirectory 'myself-sandbox'
    pluginName 'wx-tool-suite-idea'
    intellij.updateSinceUntilBuild false
    downloadSources false
    sameSinceUntilBuild false
}
patchPluginXml {
    changeNotes """
      wx Tool suite<br>
      <em>most HTML tags may be used</em>"""
}
  • 通过Gradle构建项目

相关文章:

  • 2021-10-31
  • 2021-10-27
  • 2021-05-28
  • 2022-12-23
  • 2021-12-08
  • 2021-06-07
  • 2021-03-30
  • 2022-01-06
猜你喜欢
  • 2021-08-09
  • 2021-11-04
  • 2022-12-23
  • 2022-01-22
  • 2021-08-09
  • 2022-02-03
相关资源
相似解决方案