2 Star 24 Fork 11

小白杨/dkp4j

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.34 KB
一键复制 编辑 原始数据 按行查看 历史
小白杨 提交于 2021-10-20 18:07 . fix bug
//判断当前系统类型
def osName = System.getProperty("os.name").toLowerCase()
def platform
if (osName.contains("linux")) {
platform = "linux"
} else if (osName.contains("window")) {
platform = "window"
} else {
platform = "mac"
}
platform += "-x86_64"
ext {
//vertx version
vertxVersion = '4.1.5'
//当前系统类型
targetPlatform = platform
//全局设置javacv平台
javacvPlatform = platform
}
subprojects {
apply plugin: 'java'
apply plugin: 'application'
group 'cn.navclub'
version '1.0-SNAPSHOT'
sourceCompatibility = "17.PREVIEW"
targetCompatibility = "17.PREVIEW"
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.annotationProcessorPath = configurations.annotationProcessor
}
dependencies {
// https://mvnrepository.com/artifact/junit/junit
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
// https://mvnrepository.com/artifact/org.tukaani/xz
implementation group: 'org.tukaani', name: 'xz', version: '1.9'
implementation group: 'org.apache.commons', name: 'commons-compress', version: '1.21'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.1'
implementation group: 'io.vertx', name: 'vertx-core', version: "${rootProject.ext.vertxVersion}"
implementation group: 'io.vertx', 'name': 'vertx-web', version: "${rootProject.ext.vertxVersion}"
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha5'
implementation group: 'ch.qos.logback', name: 'logback-core', version: '1.3.0-alpha10'
implementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.3.0-alpha10'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.0-rc2'
}
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
maven {
url "https://maven.aliyun.com/nexus/content/repositories/central"
}
maven {
url 'https://maven.aliyun.com/repository/jcenter'
}
maven {
url "https://maven.aliyun.com/nexus/content/groups/public/"
}
mavenCentral()
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/navigatorCode/dkp4j.git
[email protected]:navigatorCode/dkp4j.git
navigatorCode
dkp4j
dkp4j
master

搜索帮助