代码拉取完成,页面将自动刷新
plugins {
id 'java'
id 'groovy'
id 'application'
// id "com.github.johnrengelman.shadow" version "7.1.2"
}
group 'com.jarvay'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
mavenContent {
snapshotsOnly()
}
}
mavenCentral()
}
def vertxVersion = "4.1.0"
def junitJupiterVersion = "5.6.0"
def mainVerticleName = "com.jarvay.gateway.ProxyVerticle"
def watchForChange = "src/**/*"
def doOnChange = "./gradlew classes"
def launcherClassName = "io.vertx.core.Launcher"
application {
mainClassName = launcherClassName
}
dependencies {
implementation("io.vertx:vertx-core:$vertxVersion")
implementation("io.vertx:vertx-web:$vertxVersion")
implementation("io.vertx:vertx-web-client:$vertxVersion")
testImplementation("org.codehaus.groovy:groovy:3.0.8")
testImplementation("org.codehaus.groovy:groovy-json:3.0.8")
testImplementation("org.assertj:assertj-core:3.19.0")
testImplementation("io.vertx:vertx-junit5:$vertxVersion")
}
//shadowJar {
// classifier = 'fat'
// manifest {
// attributes 'Main-Verticle': mainVerticleName
// }
// mergeServiceFiles {
// include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
// }
//}
run {
args = ['run', mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$launcherClassName", "--on-redeploy=$doOnChange"]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。