加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.50 KB
一键复制 编辑 原始数据 按行查看 历史
blesser 提交于 2020-09-25 15:53 . Registry重写和应用
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
//netty
implementation 'io.netty:netty-all:4.1.29.Final'
//Http utils
implementation 'org.apache.httpcomponents:httpclient:4.5.11'
//Gson
implementation 'com.google.code.gson:gson:2.8.6'
//rocksDB
implementation 'org.rocksdb:rocksdbjni:6.4.6'
// Log4j
implementation 'log4j:log4j:1.2.17'
// Junit
testImplementation 'junit:junit:4.12'
//ElasticSearch
implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:7.9.0'
//bouncyCastle
implementation 'org.bouncycastle:bcprov-jdk15on:1.65'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.65'
}
jar {
String libs = ''
configurations.runtimeClasspath.each {
libs = libs + " libs/" + it.name
}
// manifest {
// attributes 'Manifest-Version': archiveVersion
// attributes 'Class-Path': libs
// attributes 'Main-Class': 'entry.MainServer'
// }
}
task copyDependencies(type: Copy) {
from configurations.runtimeClasspath
into 'build/libs/libs'
}
task release(type: Zip, dependsOn: [jar, copyDependencies]) {
from 'build/libs'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "doipSDK-v${rootProject.version}.zip"
destinationDirectory = file('output/')
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化