加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.73 KB
一键复制 编辑 原始数据 按行查看 历史
LCR 提交于 2022-07-25 08:58 . nothing
plugins {
id 'java'
}
group 'org.example'
version '1.0'
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.8.1'
//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'
// https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
implementation group: 'com.nimbusds', name: 'nimbus-jose-jwt', version: '9.10'
// 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'
//doip
implementation files('libs/doip-1.0.jar')
//irp
implementation files('libs/irp-1.0.jar')
//sqlite3
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.30.1'
}
jar {
String libs = ''
configurations.runtimeClasspath.each {
libs = libs + " libs/" + it.name
}
manifest {
attributes 'Manifest-Version': archiveVersion
attributes 'Class-Path': libs
attributes 'Main-Class': 'org.bdware.applications.entrance.satelite.Main'
}
}
task copyCertifications(type: Copy) {
from 'keys'
into 'build/libs/keys'
}
task copyData(type: Copy) {
from 'data'
into 'build/libs/data'
}
task copyDependencies(type: Copy, dependsOn: [copyCertifications, copyData]) {
from configurations.runtimeClasspath
into 'build/libs/libs'
}
task releaseAPIRepo(type: Zip, dependsOn: [jar, copyDependencies]) {
from 'build/libs'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "APIRepo.zip"
destinationDirectory = file('output/')
}
task releaseRegistry(type: Zip, dependsOn: [jar, copyDependencies]) {
from 'build/libs'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "DORegistry.zip"
destinationDirectory = file('output/')
}
task releaseRouter(type:Zip, dependsOn: [jar, copyDependencies]) {
from 'build/libs'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "DoipRouter.zip"
destinationDirectory = file('output/')
}
task releaseSatelite(type:Zip, dependsOn: [jar, copyDependencies]) {
from 'build/libs'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = "DoipInSatelite.zip"
destinationDirectory = file('output/')
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化