Merge branch 'release/1.1.0'

This commit is contained in:
Marvin Scham
2023-09-23 00:16:12 +02:00
6 changed files with 51 additions and 7 deletions

29
.bumpversion.cfg Normal file
View File

@@ -0,0 +1,29 @@
[bumpversion]
current_version = 1.1.0
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>[a-z]+))?
serialize =
{major}.{minor}.{patch}-{release}
{major}.{minor}.{patch}
[bumpversion:part:release]
optional_value = gamma
values =
beta
gamma
[bumpversion:file:pom.xml]
search = <version>{current_version}</version>
replace = <version>{new_version}</version>
[bumpversion:file:docker-compose.yml]
search = image: easydrop:{current_version}
replace = image: easydrop:{new_version}
[bumpversion:file:Dockerfile]
search = /app/target/easydrop-{current_version}.jar
replace = /app/target/easydrop-{new_version}.jar
[bumpversion:file:README.md]
search = version-{current_version}-orange
replace = version-{new_version}-orange

View File

@@ -9,6 +9,7 @@ variables:
-DdeployAtEnd=true -DdeployAtEnd=true
-Dsonar.host.url=$SONAR_URL -Dsonar.host.url=$SONAR_URL
-Dsonar.token=$SONAR_TOKEN -Dsonar.token=$SONAR_TOKEN
-Dsonar.projectKey=EasyDrop
-Dhttps.protocols=TLSv1.2 -Dhttps.protocols=TLSv1.2
-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true -Djava.awt.headless=true
@@ -24,6 +25,7 @@ stages:
- build - build
- test - test
- analyze - analyze
- document
build: build:
stage: build stage: build
@@ -42,3 +44,16 @@ analyze:
script: script:
- echo "Starting Code Analysis..." - echo "Starting Code Analysis..."
- mvn $MVN_OPTS verify sonar:sonar -Pcoverage - mvn $MVN_OPTS verify sonar:sonar -Pcoverage
document:
stage: document
script:
- echo "Starting Doc Generation..."
- apt-get update && apt-get install -y graphviz
- mvn clean compile
- mvn $MVN_OPTS generate-resources -Pgenerate-docs
- cp target/generated-docs/easydrop.png uml.png
artifacts:
paths:
- uml.png
name: UML

View File

@@ -21,7 +21,7 @@ RUN mvn -B package -DskipTests
FROM openjdk:17-jdk-slim FROM openjdk:17-jdk-slim
# Copy the jar file from the build stage # Copy the jar file from the build stage
COPY --from=build /app/target/easydrop-1.0.2.jar /easydrop.jar COPY --from=build /app/target/easydrop-1.1.0.jar /easydrop.jar
# Execute the application when the docker container starts. # Execute the application when the docker container starts.
ENTRYPOINT ["java", "-jar", "/easydrop.jar"] ENTRYPOINT ["java", "-jar", "/easydrop.jar"]

View File

@@ -1,8 +1,8 @@
# EasyDrop # EasyDrop
![Version](https://img.shields.io/badge/version-1.0.2-orange) ![Version](https://img.shields.io/badge/version-1.1.0-orange)
![Pipeline](https://gitlab.fbe-adswen.rwu.de/team1/sandbox2/badges/main/pipeline.svg) ![Pipeline](https://gitlab.ms-ds.org/marvinscham/EasyDrop/badges/main/pipeline.svg)
[![Coverage](https://sonar.fbe-adswen.rwu.de/api/project_badges/measure?project=de.rwu%3Aeasydrop&metric=coverage&token=sqb_2fe80aed361468170aaef32a0ff96d596456cdd1)](https://sonar.fbe-adswen.rwu.de/dashboard?id=de.rwu%3Aeasydrop) [![Coverage](https://sonar.ms-ds.org/api/project_badges/measure?project=EasyDrop&metric=coverage&token=sqb_3448cb054f57db92cf53dac5016cdcc73e9c2317)](https://sonar.ms-ds.org/dashboard?id=EasyDrop)
[![JAMANN](https://img.shields.io/badge/Auszahlung-Letzte%20Woche-brightgreen)](https://www.youtube.com/watch?v=rmV2Ztoh6LY) [![JAMANN](https://img.shields.io/badge/Auszahlung-Letzte%20Woche-brightgreen)](https://www.youtube.com/watch?v=rmV2Ztoh6LY)
## Description ## Description
@@ -44,4 +44,4 @@ To run it on a fixed schedule, install a cron job, e.g.
## Contributing 👷‍♂️👷‍♀️ ## Contributing 👷‍♂️👷‍♀️
Contribution guidelines are available in the [project wiki](https://gitlab.fbe-adswen.rwu.de/team1/sandbox2/-/wikis/Richtlinien/Development) Contribution guidelines are available in the [project wiki](https://gitlab.ms-ds.org/marvinscham/EasyDrop/-/wikis/Richtlinien/Development)

View File

@@ -6,7 +6,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: easydrop:1.0.2 image: easydrop:1.1.0
volumes: volumes:
- ./config:/config - ./config:/config
- type: bind - type: bind

View File

@@ -5,7 +5,7 @@
<groupId>de.rwu</groupId> <groupId>de.rwu</groupId>
<artifactId>easydrop</artifactId> <artifactId>easydrop</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.2</version> <version>1.1.0</version>
<name>EasyDrop</name> <name>EasyDrop</name>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>