Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ See below details on how to start each of them.
This project uses [Maven](https://maven.apache.org/what-is-maven.html)
as build tool.

In order to build it, just do the well-known:
In order to build it, just run the well-known Maven command:

```
mvn clean install
Expand All @@ -28,6 +28,12 @@ To build without executing automated tests:
mvn clean install -DskipTests
```

Alternatively, Gradle can also be used:

```
gradle clean build
```

Java 21 is used for this project.

## Starting Spring Boot REST Application
Expand All @@ -39,6 +45,12 @@ in the project's root directory:
mvn -pl restapp spring-boot:run
```

Alternatively, the following Gradle command can also be used:

```
gradle :restapp:bootRun
```

The following REST operations, as defined in the OpenAPI specification,
will be exposed on HTTP `localhost:9090`:

Expand All @@ -54,6 +66,12 @@ in the project's root directory:
mvn -pl webapp spring-boot:run
```

Alternatively, the following Gradle command can also be used:

```
gradle :webapp:bootRun
```

Open the browser and go to the following address:

```
Expand Down
3 changes: 1 addition & 2 deletions openapi-spec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ buildscript {

plugins {
id 'buildlogic.java-conventions'
id 'org.openapi.generator' version '7.12.0'
}

apply plugin: 'org.openapi.generator'

dependencies {
api libs.com.google.code.findbugs.jsr305
api libs.com.google.code.gson.gson
Expand Down
9 changes: 8 additions & 1 deletion restapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

plugins {
id 'buildlogic.java-conventions'
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id 'java'
}

dependencies {
api project(':openapi-spec')
implementation project(':openapi-spec')
api libs.com.google.zxing.core
api libs.com.google.zxing.javase
api libs.org.springframework.boot.spring.boot.starter
Expand All @@ -16,3 +19,7 @@ dependencies {
}

description = 'REST layer'

springBoot {
mainClass = 'edu.training.qrcodeapp.rest.QRCodeGeneratorRestApp'
}
7 changes: 7 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
* This file was generated by the Gradle 'init' task.
*/

pluginManagement {
plugins {
id 'org.springframework.boot' version '3.4.4'
id 'io.spring.dependency-management' version '1.1.7'
}
}

rootProject.name = 'qrcodeapp'
include(':openapi-spec')
include(':restapp')
Expand Down
9 changes: 8 additions & 1 deletion webapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@

plugins {
id 'buildlogic.java-conventions'
id 'org.springframework.boot'
id 'io.spring.dependency-management'
id 'java'
}

dependencies {
api project(':openapi-spec')
implementation project(':openapi-spec')
api libs.org.springframework.boot.spring.boot.starter.validation
api libs.org.springframework.boot.spring.boot.starter.web
api libs.org.springframework.boot.spring.boot.starter.thymeleaf
Expand All @@ -19,3 +22,7 @@ dependencies {
}

description = 'Web Application'

springBoot {
mainClass = 'edu.training.qrcodeapp.web.QRCodeGeneratorWebApp'
}
Loading