Skip to content

mservicetech/light-api-template-gradle

Repository files navigation

Light-api-template-gradle

For the detail document and how to config for codegen please refer to:

Build in gradle

Preconditions

  • Install JDK 8 (from oracle or open-jdk)
  • cd {light api template folder}

Generate code based on specification

# **nix or MacOs
./gradlew codeGen

# windows
gradlew codeGen

Build application

# **nix or MacOs
./gradlew clean build

# windows
gradlew clean build

Run applications

java -jar -Dlight-4j-config-dir=configuration/local/config target/light-petstore-api-1.00.jar

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5001 -jar -Dlight-4j-config-dir=configuration/local/config target/light-petstore-api-1.00.jar

# up to java 5
java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5001 -jar -Dlight-4j-config-dir=configuration/local/config target/light-petstore-api-1.00.jar

About

gradle base light-4j api codegen template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published