Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.DS_Store
.idea/
out/
*.iml
build/
.gradle/
*.hprof

18 changes: 1 addition & 17 deletions RestfulToolkit.iml
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/resources/META-INF/plugin.xml" />
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/out/production/RestfulTookit" />
<output-test url="file:///test/RestfulToolkit" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/resources" type="java-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/kotlin" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="commons-codec-1.9" level="project" />
<orderEntry type="library" name="httpclient" level="application" />
</component>
</module>
<module type="JAVA_MODULE" version="4" />
62 changes: 62 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
plugins {
id 'java'
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id 'org.jetbrains.intellij' version '0.4.14' //引入intellij的gradle插件
}

group 'com.zhaow.restful.toolkit'
version '3.0.0' //定义jar包/zip包的版本号
ext.kotlin_version = '1.3.72'

sourceCompatibility = 1.8 // 限制jdk的使用版本号,这里限制到8,表示生成的idea插件只能运行在jdk8以上的环境中

repositories {
maven {
url 'https://maven.aliyun.com/nexus/content/groups/public/'
}

maven {
url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}

dependencies {
//这里引别的依赖包
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation 'junit:junit:4.12'
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
//testCompile group: 'junit', name: 'junit', version: '4.12'
}

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
// 这里是指打插件包的时候用idea什么版本的依赖包打
// 比如这里用2019.3打包,如果你的插件实现源码里用了2019.3不存在的依赖包或类,就会报错
// 一般就填当前IDEA的版本号即可
//version "2019.3" // 2019.3
type = 'IU' // 'IU' IntelliJ IDEA Ultimate Edition,默认值为 'IC' IntelliJ IDEA Community Edition
pluginName = 'WebDT' // 插件名,Web Development Toolkit
//localPath = '/Users/aborn/software/ideaIC-2020.1' // IC 版本 2020.1
localPath = '/Applications/IntelliJ IDEA.app' // 本地的 ieda路径 (与version属性互斥),这个为2020.1版本
//localPath = '/Applications/IntelliJ IDEA 2.app' // 2019.3版本
//downloadSources = false
plugins = ['java', 'Kotlin']
}

//patchPluginXml {

//changeNotes里的内容展示位置参考图14
//changeNotes """
// 1.0版本.

// 第1.0版本:初始化这个测试插件项目"""

// 这个意思是说当前定义的这个插件最早支持到什么版本的IDEA
// 这里配置sinceBuild=191,表示插件只能被版本号大于等于2019.1版本的IDEA安装,低于这个版本的将抛无法兼容的错误
// ↑上方参考这篇问答:https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003338799-Build-compatible-plugin
// sinceBuild "192.5728.98" // 原 191
//}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Jun 10 22:05:09 CST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
185 changes: 185 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 104 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading