• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

vert-x3/vertx-gradle-starter: Gradle project template for Vert.x

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

vert-x3/vertx-gradle-starter

开源软件地址(OpenSource Url):

https://github.com/vert-x3/vertx-gradle-starter

开源编程语言(OpenSource Language):

Java 54.8%

开源软件介绍(OpenSource Introduction):

Vert.x Gradle Starter

This project is a template to start your own Vert.x project using Gradle.

Prerequisites

  • JDK 8+

Getting started

Create your project with:

git clone https://github.com/vert-x3/vertx-gradle-starter.git PROJECT_NAME

Replace PROJECT_NAME with the name of your project.

On Linux and MacOSx (or Windows with bash), if you want to go faster and generate an already configured project run:

curl http://vertx.io/assets/starter-scripts/create-vertx-project-gradle.sh -o vertx-create-gradle-project.sh; bash vertx-create-gradle-project.sh

Running the project

Once you have retrieved the project, you can check that everything works with:

./gradlew test run

The command compiles the project and runs the tests, then it launches the application, so you can check by yourself. Open your browser to http://localhost:8080. You should see a Hello World message.

Anatomy of the project

The project contains:

  • the Gradle project using the Kotlin DSL (see build.gradle.kts) with auto-reloading and fat-jar building

  • a main verticle file (src/main/java/io/vertx/starter/MainVerticle.java)

  • a unit test (src/main/test/io/vertx/starter/MainVerticleTest.java)

Start to hack

  1. Delete the .git directory

  2. Open the build.gradle.kts file and customize vertxVersion. You can also change the mainVerticleName variable to use your own package name and verticle class.

  3. Run ./gradlew run.

This last command relaunches Gradle and the application as soon as you change something under src/main.

Building the project

To build the project, just use:

./gradlew build

It generates a fat-jar in the build/libs directory.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap