代码拉取完成,页面将自动刷新
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/')
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。