[go: nahoru, domu]

Skip to content

JVM (java / kotlin) starter using Gradle / Maven build tools.

License

Notifications You must be signed in to change notification settings

daggerok/main-starter

 
 

Repository files navigation

main-starter Build Status

Spring Fu JaFu starter using Gradle / Maven build tools.

getting started

git clone -b spring-fu-jafu --depth=1 https://github.com/daggerok/main-starter.git
cd main-starter
rm -rf .git

maven

fat jar

./mvnw package
java -jar target/*.jar

http :8080
http :8080/count
http delete :8080
http :8080/count
http :8080 login=ololo firstName=trololo lastName=ohoho
http :8080/ololo
http put :8080/ololo login=trololo firstName=trololo lastName=trololo
http :8080/trololo

project sources archive

find archive with all project sources in target folder too:

./mvnw assembly:single -Dassembly.ignoreMissingDescriptor
unzip -d target/sources target/*-sources.zip
unzip -d target/default target/*-src.zip

gradle

fat jar

./gradlew build
java -jar build/libs/*.jar

http :8080
http :8080/count
http delete :8080
http :8080/count
http :8080 login=ololo firstName=trololo lastName=ohoho
http :8080/ololo
http put :8080/ololo login=trololo firstName=trololo lastName=trololo
http :8080/trololo

project sources archive

to create archive with all project sources use gradle sources task, like so:

./gradlew sources
unzip -d build/sources build/*.zip

resources

This project was cloned originally from GitHub: daggerok/spring-fu-jafu-example

NOTE: This project has been based on GitHub: daggerok/main-starter

see also samples