Skip to content

Commit

Permalink
renaming packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrus committed Apr 28, 2024
1 parent 2fd391e commit b5988a0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![build test](https://github.com/bootique-examples/bootique-rest-demo/actions/workflows/verify.yml/badge.svg)](https://github.com/bootique-examples/bootique-rest-demo/actions/workflows/verify.yml)

# Bootique 3.x REST Demo
# Bootique 3.x Jersey Examples

This is an example [Bootique](http://bootique.io) REST service app. It shows how to create and register REST
This is an example [Bootique](http://bootique.io) REST service app with Jersey. It shows how to create and register REST
endpoints, write integration tests for the REST API, assemble and run the application.

Different Git branches contain demo code for different versions of Bootique:
Expand All @@ -22,8 +22,8 @@ and then follow these steps:

## Checkout
```
git clone [email protected]:bootique-examples/bootique-rest-demo.git
cd bootique-rest-demo
git clone [email protected]:bootique-examples/bootique-jersey-examples.git
cd bootique-jersey-examples/
```

## Build, test and package
Expand All @@ -33,24 +33,24 @@ Run the following command to build the code, run the tests and package the app:
mvn clean package
```
This project uses a [runnable jar with lib folder](https://bootique.io/docs/3.x/bootique-docs/#runnable-jar-with-lib)
packaging recipe, so now the app is packaged for distribution as `target/bootique-rest-demo-3.0.tar.gz` archive. But
packaging recipe, so now the app is packaged for distribution as `target/bootique-jersey-examples-3.0.tar.gz` archive. But
there is also the "unpacked" version in the `target` folder that can be used to run the app.

## Run

The following command prints a help message with supported options:
```
java -jar target/bootique-rest-demo-3.0.jar
java -jar target/bootique-jersey-examples-3.0.jar
```

The following command runs the REST app with the default config. Once the app is started, you can see the results by
going to this URL in the browser: http://127.0.0.1:8080/
```
java -jar target/bootique-rest-demo-3.0.jar --server
java -jar target/bootique-jersey-examples-3.0.jar --server
```

The following command runs the REST app with a custom config, Once the app is started, you can see the results by
going to this URL in the browser: http://127.0.0.1:9000/bq
```
java -jar target/bootique-rest-demo-3.0.jar --server --config=test.yml
java -jar target/bootique-jersey-examples-3.0.jar --server --config=test.yml
```
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.bootique.rest.demo</groupId>
<artifactId>bootique-rest-demo</artifactId>
<groupId>io.bootique.examples.jersey</groupId>
<artifactId>bootique-jersey-examples</artifactId>
<version>3.0</version>
<packaging>jar</packaging>

Expand All @@ -13,7 +13,7 @@
<maven.compiler.release>11</maven.compiler.release>

<bootique.version>3.0-M4</bootique.version>
<main.class>io.bootique.rest.demo.App</main.class>
<main.class>io.bootique.examples.jersey.App</main.class>
</properties>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.bootique.rest.demo;
package io.bootique.examples.jersey;

import io.bootique.BQModule;
import io.bootique.Bootique;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.bootique.rest.demo;
package io.bootique.examples.jersey;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.bootique.rest.demo;
package io.bootique.examples.jersey;

import io.bootique.BQRuntime;
import io.bootique.Bootique;
Expand Down

0 comments on commit b5988a0

Please sign in to comment.