Comments (2)
@jponge assigned it to you. Again, if you can it before EOW, please set the 2.0.0
milestone.
from vertx-starter.
My conversion of the default Gradle build script for a fresh Vert.x project, to Kotlin (tested only to pass build):
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
kotlin("jvm") version "1.3.11"
application
id("com.github.johnrengelman.shadow") version "4.0.3"
}
group = "ro.minifarm"
version = "1.0.0-SNAPSHOT"
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.11")
implementation("io.vertx:vertx-core:3.6.0")
implementation("io.vertx:vertx-jdbc-client:3.6.0")
implementation("io.vertx:vertx-config:3.6.0")
implementation("io.vertx:vertx-sql-common:3.6.0")
implementation("io.vertx:vertx-auth-jwt:3.6.0")
implementation("io.vertx:vertx-health-check:3.6.0")
implementation("io.vertx:vertx-web:3.6.0")
implementation("io.vertx:vertx-mail-client:3.6.0")
implementation("io.vertx:vertx-redis-client:3.6.0")
testImplementation("io.vertx:vertx-junit5:3.6.0")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.2.0")
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
val mainVerticleName = "ro.minifarm.requester.MainVerticle"
tasks.withType<ShadowJar> {
baseName = "app"
classifier = "shadow"
manifest {
attributes["Main-Verticle"] = mainVerticleName
}
mergeServiceFiles {
include("META-INF/services/io.vertx.core.spi.VerticleFactory")
}
}
val watchForChange = "src/**/*"
val doOnChange = "./gradlew classes"
val mainClass = "io.vertx.core.Launcher"
application {
mainClassName = mainClass
applicationDefaultJvmArgs = listOf(mainVerticleName, "--redeploy=$watchForChange", "--launcher-class=$mainClassName", "--on-redeploy=$doOnChange")
}
tasks.withType<Wrapper> {
gradleVersion = "5.0"
}
from vertx-starter.
Related Issues (20)
- JDK 16 update
- Cluster manager names update
- Remove references to jcenter
- Upgrade to shadow plugin 7 for Gradle projects
- Add mutiny to the Reactive category in the dependencies HOT 2
- Project is not building when JDK version not matched with system one HOT 3
- Remove Vert.x 3.9 from starter
- Add Vert.x URI Template to the stack HOT 1
- Vert.x URI template is missing in the stack
- Vert.x gRPC client and server modules missing in the stack definition
- Please add SCRAM-SHA-256 library to project options
- Support generating a kotlin project with gradle groovy syntax HOT 2
- can not choose the version choose box HOT 1
- Upgrade to Vert.x 4.4
- native executable support
- Java 21 support
- Improve vertx version upgrade HOT 1
- Webpage should be able to use cached metadata
- Support both Vert.x 4 and Vert.x 5
- Starter with 5.0.0-SNAPSHOT uses incorrect launcher class in pom.xml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vertx-starter.