Coder Social home page Coder Social logo

vertx-gradle-template's Introduction

Project Shiny

Goal: create a working Vert.x projec using compiled Groovy verticles, Logback-based logging, and working unit and integration tests.

Starting with the original template, these are (roughly) the steps that I took to get the project in this state :

  1. Clone
  2. Remove unwanted files
  3. Rename package directories (this is more easily done outside of IDEA, alas)
  4. Add a groovy source directory and a groovy source file.
  5. Modify mod.json
  6. Run gradle idea to generate IDEA files - note that you must do this after you add groovy stuff.

##Open questions

  1. Java source attaches nicely in IDEA - why isn't groovy source attaching?
  2. How do you spin up multiple verticles? Looks like we still need an app starter verticle, which is consistent with Vertx 1.3.1. Not demonstrated yet.
  3. Where do logs go? This is determined by log config, which is in src/main/resources/Logback.groovy. However I haven't really got this to work with any confidence.

##Closed questions

  1. How do you run a compiled groovy verticle? Add groovy: to the mod.json
  2. Where is mod.json documented? https://github.com/vert-x/vert.x/blob/docs_2.0.0/core_manual_groovy.md
  3. Where is the vertx version set? gradle.properties#vertxVersion. Valid strings can be inferred from https://github.com/vert-x/vert.x/tags, and what you get with those tags in the google group. It's pretty informal at this point.
  4. How do I add other dependencies to the build? Add a line to build.gradle like compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.13'. Values can be inferred from maven repository values such as this mvnrepository.com entry for logback
  5. How can I run an class that has a main() in it with gradle? I don't really want to do this; instead of a testing main, use a unit test. I would like to know for general interest though.
  6. Why does RecordParser seem to want to throw an exception? Compiled groovy verticles need to have special strings in mod.json. Without that special string, all hell breaks loose.

###Apology

Some of these questions are not vertx dependant - in fact many of them are gradle dependant, a build system with which I have a few hours of experience.

vertx-gradle-template's People

Contributors

javajosh avatar purplefox avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.