代码拉取完成,页面将自动刷新
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
ext.vertx_version = '4.3.8'
ext.kotlin_version = '1.6.10'
ext.logback_version = '1.4.5'
repositories {
maven {
url "https://maven.aliyun.com/repository/google"
}
maven {
url "https://maven.aliyun.com/nexus/content/repositories/central"
}
maven {
url "https://maven.aliyun.com/nexus/content/groups/public/"
}
maven {
url "https://nexus.gluonhq.com/nexus/content/repositories/releases"
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.kotlin.jvm'
group 'cn.dbfx'
version '0.0.1-SNAPSHOT'
sourceCompatibility = 15
targetCompatibility = 15
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/main/kotlin']
}
resources {
srcDirs = ['src/main/resources']
}
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "11"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "11"
}
}
repositories {
maven { url "https://mirrors.huaweicloud.com/repository/maven/" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation group: 'io.vertx', name: 'vertx-pg-client', version: vertx_version
implementation group: 'io.vertx', name: 'vertx-mysql-client', version: vertx_version
implementation group: 'io.vertx', name: 'vertx-db2-client', version: vertx_version
implementation group: 'io.vertx', name: 'vertx-sql-client', version: vertx_version
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha1'
implementation group: 'ch.qos.logback', name: 'logback-core', version: logback_version
implementation group: 'ch.qos.logback', name: 'logback-classic', version: logback_version
implementation group: 'io.vertx', name: 'vertx-core', version: vertx_version
implementation group: 'io.vertx', name: 'vertx-lang-kotlin-coroutines', version: vertx_version
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.14.2'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation group: 'io.vertx', name: 'vertx-unit', version: vertx_version
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。