{"id":19656462,"url":"https://github.com/daggerok/payara-micro-example","last_synced_at":"2025-07-08T19:41:05.280Z","repository":{"id":44857535,"uuid":"156317793","full_name":"daggerok/payara-micro-example","owner":"daggerok","description":"This is a simple Payara MicroProfile project by using maven and gradle build tools compiling and running on top of Java 8 and Java 11. Gradle payara-micro uber-jar build automation (see payara.gradle build file for details) Read more about micro-profile initiative: https://microprofile.io","archived":false,"fork":false,"pushed_at":"2022-03-08T21:17:29.000Z","size":233,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:43:14.675Z","etag":null,"topics":["buildsrc","eclipsel","fatjar","gradle","gradle-kotlin-dsl","h2","h2-database","javaee","javaee7","javaee8","jdk11","jdk8","jpa","liquibase","logging","microprofile","payara","payara-micro","slf4j","uberjar"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-06T03:03:11.000Z","updated_at":"2019-12-02T06:12:59.000Z","dependencies_parsed_at":"2022-07-25T00:46:45.937Z","dependency_job_id":null,"html_url":"https://github.com/daggerok/payara-micro-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fpayara-micro-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fpayara-micro-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fpayara-micro-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fpayara-micro-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/payara-micro-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964765,"owners_count":19885803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["buildsrc","eclipsel","fatjar","gradle","gradle-kotlin-dsl","h2","h2-database","javaee","javaee7","javaee8","jdk11","jdk8","jpa","liquibase","logging","microprofile","payara","payara-micro","slf4j","uberjar"],"created_at":"2024-11-11T15:27:52.383Z","updated_at":"2025-02-27T02:20:09.914Z","avatar_url":"https://github.com/daggerok.png","language":"Java","readme":"= payara-micro-example image:https://travis-ci.org/daggerok/payara-micro-example.svg?branch=master[\"Build Status\", link=\"https://travis-ci.org/daggerok/payara-micro-example\"]\n\nThis is a simple Payara MicroProfile project by using maven and gradle build tools compiling and running on top of\nJava 8 and Java 11\n\n== features\n\n* payara-micro\n* fatJar / uberJar\n* JPA eclipselink\n* H2 database\n* Liquibase\n* slf4j logging\n\n.build ROOT.war and deploy it into *-microbundle.jar\n[source,bash]\n----\n./gradlew clean bundle\n\nls -lah ./build | grep jar\n----\n\n.run (with remote debug for example)\n[source,bash]\n----\njava -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 \\\n          -Djava.net.preferIPv4Stack=true \\\n            ./build/libs/*-microbundle.jar\n----\n\n.test: post new data\n[source,bash]\n----\nhttp :8080/v1 string=one\nhttp :8080/v1 string=two\nhttp :8080/v1 string=3\n----\n\n.test\n[source,http]\n----\nHTTP/1.1 202 Accepted\nContent-Length: 0\nServer: Payara Micro #badassfish\nX-Frame-Options: SAMEORIGIN\n----\n\n.test\n[source,bash]\n----\nhttp :8080/v1\n----\n\n.test\n[source,http]\n----\nHTTP/1.1 200 OK\nContent-Length: 17\nContent-Type: application/json\nServer: Payara Micro #badassfish\nX-Frame-Options: SAMEORIGIN\n----\n\n.verify\n[source,json]\n----\n[\n    \"two\",\n    \"one\",\n    \"3\"\n]\n----\n\n.using gradle is very similar to maven\n[source,bash]\n----\n./gradlew bundle\n\n./gradlew start\n# or\njava -jar build/libs/*-microbindle.jar\n----\n\nTIP: see link:https://github.com/daggerok/payara-micro-example/blob/master/build.gradle.kts#L25[Payara Gradle] build file for details.\n\n.maven usage\n[source,bash]\n----\n./mvnw -Pbundle\n\n./mvnw -Pstart\n# or\njava -jar target/*-microbundle.jar\n----\n\n== my other payara-related repositories\n\n* link:https://github.com/daggerok/kotlin-payara-micro-profile[GitHub: daggerok/kotlin-payara-micro-profile]\n* link:https://github.com/daggerok/payara-micro-gradle-no-plugin[GitHub: daggerok/payara-micro-gradle-no-plugin]\n* link:https://github.com/daggerok/payara-micro-gradle-plugin-build-script[GitHub: daggerok/payara-micro-gradle-plugin-build-script]\n* link:https://github.com/daggerok/maven-java-projects[GitHub: daggerok/maven-java-projects]\n* link:https://github.com/daggerok/generator-jvm[GitHub: daggerok/generator-jvm]\n* link:https://github.com/daggerok/payara-micro-example[GitHub: daggerok/payara-micro-example]\n* link:https://github.com/daggerok/microprofile-examples[GitHub: daggerok/microprofile-examples]\n\n== resources\n\n- see more about link:https://wiki.eclipse.org/MicroProfile/Implementation[MicroProfiles]\n- link:https://docs.payara.fish/documentation/ecosystem/gradle-plugin.html[Payara Gradle plugin]\n- link:https://www.liquibase.org/documentation/includeall.html[Liquibase]\n- link:https://wiki.eclipse.org/EclipseLink/Examples[EclipseLink Examples]\n- link:https://www.eclipse.org/eclipselink/documentation/2.5/jpa/extensions/p_ddl_generation.htm[EclipseLink DDL]\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fpayara-micro-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fpayara-micro-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fpayara-micro-example/lists"}