IntellijIdea外掛開發-外掛專案建立
阿新 • • 發佈:2018-12-19
通過嚮導建立外掛專案
這裡通過Gradle來構建專案
- 通過嚮導建立專案
- 修改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構建專案