加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
yaojingguo 提交于 2019-10-01 22:48 . Add Netty code and ServerSocket code
apply plugin: "java"
apply plugin: "idea"
apply plugin: "application"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation "org.apache.zookeeper:zookeeper:3.5.5"
implementation "org.apache.curator:curator-recipes:4.2.0"
implementation "org.apache.curator:curator-x-discovery:4.2.0"
implementation "org.apache.curator:curator-x-discovery-server:4.2.0"
testImplementation "junit:junit:4.12"
testImplementation "com.google.truth:truth:1.0"
}
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = "UTF-8"
mainClassName = "org.yao.netty.echo.EchoServer"
test {
testLogging {
showStandardStreams = true
events "passed", "skipped", "failed"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化