在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):jponge/vertx-gradle-plugin开源软件地址(OpenSource Url):https://github.com/jponge/vertx-gradle-plugin开源编程语言(OpenSource Language):Kotlin 80.0%开源软件介绍(OpenSource Introduction):Vert.x Gradle PluginWhat the plugin doesThis plugin simplifies building and running Vert.x applications with Gradle. It automatically applies the following plugins:
You can omit versions from elements in the https://github.com/vert-x3/vertx-stack[the Vert.x stack as the plugin references the corresponding Maven BOM.
The plugin automatically adds The plugin provides a
The plugin provides a
Minimal exampleplugins {
id 'io.vertx.vertx-plugin' version 'x.y.z' // (1)
}
repositories {
jcenter()
}
vertx {
mainVerticle = 'sample.App'
}
Replace Provided
A slightly more elaborated exampleA project using plugins {
id 'io.vertx.vertx-plugin' version 'x.y.z'
}
repositories {
jcenter()
}
dependencies {
compile "io.vertx:vertx-web" // (1)
compile "ch.qos.logback:logback-classic:1.2.3" // (2)
}
vertx {
mainVerticle = "sample.App"
vertxVersion = "4.1.2" // (3)
}
Kotlin projectsThis plugin works with Kotlin projects too: plugins {
id 'io.vertx.vertx-plugin' version 'x.y.z'
id 'org.jetbrains.kotlin.jvm' version 'a.b.c'
}
repositories {
jcenter()
}
dependencies {
compile 'io.vertx:vertx-lang-kotlin'
compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' // (1)
}
vertx {
mainVerticle = "sample.MainVerticle" // (2)
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { // (3)
kotlinOptions {
jvmTarget = "1.8"
}
}
Using Kotlin DSLplugins {
id("io.vertx.vertx-plugin") version "x.y.z"
}
repositories {
jcenter()
}
vertx { // (1)
mainVerticle = "sample.App"
}
ConfigurationThe configuration happens through the The following configuration can be applied, and matches the
The default values are listed in By default redeployment is enabled, running LicensingCopyright 2017-2019 Red Hat, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. CreditsThe plugin was originally created by Julien Ponge. Thanks to the folks at Gradle for their guidance and technical discussions:
Thanks also to all the contributors to this project. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论