From f00ba444c97f468ad94302e14382a2c70b9e9340 Mon Sep 17 00:00:00 2001 From: Dima Denysenko Date: Fri, 17 Nov 2023 13:24:45 +0200 Subject: [PATCH] chore: migrate to dev.knowhowto.sb --- .drone/Dockerfile | 14 - .drone/pipelines.yml | 440 ------------------ .github/workflows/check-commit-message.yml | 4 +- .husky/pre-commit | 2 +- README.md | 4 +- SEMANTIC_COMMITS.md | 35 -- package.json | 2 +- pom.xml | 14 +- src/main/docker/prometheus/prometheus.yml | 4 +- .../webfluxvaadinchat/ChatService.java | 2 +- .../webfluxvaadinchat/ChatView.java | 2 +- .../webfluxvaadinchat/LoginView.java | 2 +- .../knowhowto}/webfluxvaadinchat/Message.java | 2 +- .../SecurityConfiguration.java | 2 +- .../WebfluxVaadinChatApplication.java | 2 +- src/main/resources/application.yml | 4 +- src/main/resources/banner.txt | 5 - 17 files changed, 23 insertions(+), 517 deletions(-) delete mode 100644 .drone/Dockerfile delete mode 100644 .drone/pipelines.yml delete mode 100644 SEMANTIC_COMMITS.md rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/ChatService.java (94%) rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/ChatView.java (96%) rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/LoginView.java (88%) rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/Message.java (68%) rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/SecurityConfiguration.java (96%) rename src/main/java/{org/ujar => dev/knowhowto}/webfluxvaadinchat/WebfluxVaadinChatApplication.java (94%) diff --git a/.drone/Dockerfile b/.drone/Dockerfile deleted file mode 100644 index e864726..0000000 --- a/.drone/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -ARG BASE_IMAGE - -FROM $BASE_IMAGE - -LABEL maintainer="dev@ujar.org" -ARG BUILD_VERSION -ENV APPLICATION_BUILD_VERSION ${BUILD_VERSION} - -WORKDIR /opt/app - -COPY ./target/*.jar /opt/app/app.jar - -ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Duser.timezone=UTC -jar /opt/app/app.jar"] -EXPOSE 8080 diff --git a/.drone/pipelines.yml b/.drone/pipelines.yml deleted file mode 100644 index 0d76f83..0000000 --- a/.drone/pipelines.yml +++ /dev/null @@ -1,440 +0,0 @@ -kind : pipeline -name : CodeVerification -type : docker - -trigger : - event : - - push - - tag - -volumes : - - name : m2cache - host : - path : /app/.m2 - -steps : - - - name : code-coverage-gate - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - volumes : - - name : m2cache - path : /root/.m2 - environment : - DEPLOYER_USERNAME : - from_secret : DEPLOYER_USERNAME - DEPLOYER_PASSWORD : - from_secret : DEPLOYER_PASSWORD - commands : - - mvn -version - - mvn dependency:resolve -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD - - mvn clean verify -Dstyle.color=always -Dmaven.javadoc.skip=true -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD - - - name : static-analysis-gate - depends_on : - - code-coverage-gate - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - volumes : - - name : m2cache - path : /root/.m2 - environment : - DEPLOYER_USERNAME : - from_secret : DEPLOYER_USERNAME - DEPLOYER_PASSWORD : - from_secret : DEPLOYER_PASSWORD - SONAR_HOST : - from_secret : SONAR_HOST - SONAR_TOKEN : - from_secret : SONAR_TOKEN - commands : - - mvn org.apache.maven.plugins:maven-dependency-plugin:3.5.0:copy-dependencies -Dmdep.prependGroupId=true -Dstyle.color=always -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD - - mvn sonar:sonar '-Dsonar.java.libraries=target/dependency/*.jar' '-Dsonar.java.test.libraries=target/classes,target/dependency/*.jar' -Dsonar.qualitygate.wait=true -Dsonar.qualitygate.timeout=300 -Dsonar.host.url=$SONAR_HOST -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=${DRONE_REPO_OWNER}:${DRONE_REPO_NAME} -Dsonar.projectName=${DRONE_REPO_OWNER}:${DRONE_REPO_NAME} -Dstyle.color=always -Dmaven.javadoc.skip=true --batch-mode -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD - - pmd check -d src -f text -R https://raw.githubusercontent.com/pmd/pmd/master/pmd-java/src/main/resources/rulesets/java/basic.xml - - mvn com.github.spotbugs:spotbugs-maven-plugin:4.7.3.4:check -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD -Dspotbugs.xmlOutput=true -Dspotbugs.failOnError=true -Dspotbugs.excludeFilterFile=../spotbugs-exclude.xml -Dspotbugs.includeTests=true -Dstyle.color=always - - - name : notify-slack-on-failure - image : plugins/slack - settings : - webhook : - from_secret : SLACK_WEBHOOK - channel : dev - template : > - :red_circle: :thunder_cloud_and_rain: {{build.link}} ({{build.branch}}) by {{build.author}} - when : - status : - - failure - depends_on : - - code-coverage-gate - - static-analysis-gate - ---- - -kind : pipeline -name : ArtifactsPublishing -type : docker - -trigger : - event : - - push - - tag - ref : - - refs/heads/develop - - refs/heads/prerelease* - - refs/heads/*.*.x - - refs/tags/* - -depends_on : - - CodeVerification - -volumes : - - name : m2cache - host : - path : /app/.m2 - -steps : - - name : publish-snapshot-jar - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - volumes : - - name : m2cache - path : /root/.m2 - environment : - DEPLOYER_USERNAME : - from_secret : DEPLOYER_USERNAME - DEPLOYER_PASSWORD : - from_secret : DEPLOYER_PASSWORD - commands : - - mvn deploy -Dstyle.color=always -DskipTests -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD -DaltDeploymentRepository=kh-contrib-snapshots-repo::https://know-how.nexus/repository/maven-snapshots - when : - branch : - include : - - "develop" - - "prerelease/*" - - "*.*.x" - - - name : publish-release-jar - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - volumes : - - name : m2cache - path : /root/.m2 - environment : - DEPLOYER_USERNAME : - from_secret : DEPLOYER_USERNAME - DEPLOYER_PASSWORD : - from_secret : DEPLOYER_PASSWORD - commands : - - mvn deploy -Dstyle.color=always -DskipTests -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD -DaltDeploymentRepository=kh-contrib-releases-repo::https://know-how.nexus/repository/maven-releases - when : - ref : - - "refs/tags/*" - - - name : create-github-release - image : plugins/github-release - settings : - api_key : - from_secret : GITHUB_API_KEY - title : ${DRONE_TAG} - note : "**Full Changelog**: https://github.com/${DRONE_REPO}/commits/${DRONE_TAG}" - files : ./target/*.jar - when : - ref : - - "refs/tags/*" - depends_on : - - publish-release-jar - - - name : notify-slack - image : plugins/slack - settings : - webhook : - from_secret : SLACK_WEBHOOK - channel : dev - template : > - {{#success build.status}} - :large_green_circle: :package: *${DRONE_COMMIT_MESSAGE}* - {{build.link}} ({{build.branch}}) by {{build.author}} - {{else}} - :red_circle: :package: {{build.link}} ({{build.branch}}) by {{build.author}} - {{/success}} - when : - status : - - failure - - success - depends_on : - - publish-snapshot-jar - - publish-release-jar - ---- - -kind : pipeline -name : DockerImagePublishing -type : docker - -trigger : - event : - - push - - tag - -depends_on : - - ArtifactsPublishing - -volumes : - - name : m2cache - host : - path : /app/.m2 - -steps : - - name : package-jar - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - volumes : - - name : m2cache - path : /root/.m2 - environment : - DEPLOYER_USERNAME : - from_secret : DEPLOYER_USERNAME - DEPLOYER_PASSWORD : - from_secret : DEPLOYER_PASSWORD - commands : - - mvn package -Dstyle.color=always -DskipTests -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true --batch-mode -s ../maven-settings.xml -Ddeployer.username=$DEPLOYER_USERNAME -Ddeployer.password=$DEPLOYER_PASSWORD - - - name : build-container-with-feature - depends_on : - - package-jar - image : plugins/docker - settings : - dockerfile : ./.drone/Dockerfile - context : ./ - storage_driver : vfs - username : - from_secret : DOCKER_USERNAME - password : - from_secret : DOCKER_PASSWORD - repo : know-how.download/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME} - registry : know-how.download - force_tag : true - build_args : - - BASE_IMAGE=know-how.download/jre:openjdk-21-slim-bookworm - - BUILD_VERSION=${DRONE_COMMIT} - tags : - - ${DRONE_BRANCH:22}-${CI_BUILD_NUMBER} - when : - branch : - include : - - "feature/containerized-*" - - - name : build-container-release-image - depends_on : - - package-jar - image : plugins/docker - settings : - dockerfile : ./.drone/Dockerfile - context : ./ - storage_driver : vfs - username : - from_secret : DOCKER_USERNAME - password : - from_secret : DOCKER_PASSWORD - repo : know-how.download/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME} - registry : know-how.download - force_tag : true - build_args : - - BASE_IMAGE=know-how.download/jre:openjdk-21-slim-bookworm - - BUILD_VERSION=${DRONE_COMMIT} - tags : - - ${DRONE_TAG} - - "latest" - when : - ref : - - "refs/tags/*" - ---- - -kind : pipeline -name : PromoteFeatureDeployment -type : docker -trigger : - event : - - promote - target : - - sit - ref : - - "refs/heads/feature/containerized-*" - -steps : - - name : deploy - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - environment : - HELM_CHARTS_REPOSITORY : - from_secret : HELM_CHARTS_REPOSITORY - commands : - - git clone $${HELM_CHARTS_REPOSITORY} charts && cd charts/${DRONE_REPO_NAME} - - kubectl version --output=yaml - - helm upgrade --install --atomic --wait --timeout 2m ${DRONE_REPO_NAME} ./ --values ./values.yaml --values ./${DRONE_DEPLOY_TO}-values.yaml --set image.tag=${DRONE_BRANCH:22}-${CI_PARENT_BUILD_NUMBER} -n ${DRONE_DEPLOY_TO}-env - - - name : notify-slack - image : plugins/slack - settings : - webhook : - from_secret : SLACK_WEBHOOK - channel : dev - template : > - {{#success build.status}} - :large_green_circle: :ship: *${DRONE_COMMIT_MESSAGE}* - {{build.link}} ({{build.branch}}) by {{build.author}} - {{else}} - :red_circle: :anchor: {{build.link}} ({{build.branch}}) by {{build.author}} - {{/success}} - when : - status : - - failure - - success - depends_on : - - deploy - ---- - -kind : pipeline -name : RollbackFeatureDeployment -type : docker -trigger : - event : - - rollback - target : - - sit - ref : - - "refs/heads/feature/containerized-*" - -steps : - - name : rollback - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - environment : - HELM_CHARTS_REPOSITORY : - from_secret : HELM_CHARTS_REPOSITORY - commands : - - git clone $${HELM_CHARTS_REPOSITORY} charts && cd charts/${DRONE_REPO_NAME} - - helm uninstall --wait --timeout 2m ${DRONE_REPO_NAME} -n ${DRONE_DEPLOY_TO}-env - ---- - -kind : pipeline -name : PromoteDeployment -type : docker -trigger : - event : - - promote - target : - - uat - - production - ref : - - "refs/tags/*" - -steps : - - name : deploy - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - environment : - HELM_CHARTS_REPOSITORY : - from_secret : HELM_CHARTS_REPOSITORY - commands : - - git clone $${HELM_CHARTS_REPOSITORY} charts && cd charts/${DRONE_REPO_NAME} - - kubectl version --output=yaml - - helm upgrade --install --atomic --wait --timeout 2m ${DRONE_REPO_NAME} ./ --values ./values.yaml --values ./${DRONE_DEPLOY_TO}-values.yaml --set image.tag=${DRONE_TAG} -n ${DRONE_DEPLOY_TO}-env - - - name : notify-slack - image : plugins/slack - settings : - webhook : - from_secret : SLACK_WEBHOOK - channel : dev - template : > - {{#success build.status}} - :large_green_circle: :ship: *${DRONE_COMMIT_MESSAGE}* - {{build.link}} ({{build.branch}}) by {{build.author}} - {{else}} - :red_circle: :anchor: {{build.link}} ({{build.branch}}) by {{build.author}} - {{/success}} - when : - status : - - failure - - success - depends_on : - - deploy - ---- - -kind : pipeline -name : RollbackDeployment -type : docker -trigger : - event : - - rollback - target : - - uat - - production - ref : - - "refs/tags/*" - -steps : - - name : rollback - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - environment : - HELM_CHARTS_REPOSITORY : - from_secret : HELM_CHARTS_REPOSITORY - commands : - - git clone $${HELM_CHARTS_REPOSITORY} charts && cd charts/${DRONE_REPO_NAME} - - helm uninstall --wait --timeout 2m ${DRONE_REPO_NAME} -n ${DRONE_DEPLOY_TO}-env - ---- - -kind : pipeline -name : ManualRelease -type : docker -trigger : - event : - - custom - branch : - - "develop" - - "*.*.x" - -volumes : - - name : m2cache - host : - path : /app/.m2 - -steps : - - name : create-release-tag - failure : ignore - image : know-how.download/svc-builder:openjdk-21-slim-bookworm - pull : if-not-exists - volumes : - - name : m2cache - path : /root/.m2 - commands : - - echo Prepare new version ${RELEASE_VERSION} - - export NEXT_SNAPSHOT=${SNAPSHOT_VERSION}-SNAPSHOT - - export GIT_AUTHOR_NAME="$${SVC_BUILD_GIT_USERNAME}" - - export GIT_AUTHOR_EMAIL=$${SVC_BUILD_GIT_EMAIL} - - export GIT_COMMITTER_NAME="$${SVC_BUILD_GIT_USERNAME}" - - export GIT_COMMITTER_EMAIL=$${SVC_BUILD_GIT_EMAIL} - - git remote set-url --push origin ${DRONE_GIT_SSH_URL} - - git checkout -b v${RELEASE_VERSION} - - mvn versions:set -DremoveSnapshot - - mvn versions:set -DnewVersion=${RELEASE_VERSION} - - mvn versions:update-parent - - >- - git commit -a -m "feat: bump version to $${RELEASE_VERSION}" - - git tag ${RELEASE_VERSION} && git push origin ${RELEASE_VERSION} - - echo "✅ Release tag ${RELEASE_VERSION} was created." - - sleep 10 - - git tag -d ${RELEASE_VERSION} && git checkout ${DRONE_COMMIT_BRANCH} && git branch -D v${RELEASE_VERSION} - - mvn versions:set -DnewVersion=$${NEXT_SNAPSHOT} - - mvn versions:update-parent -DallowSnapshots=true - - >- - git commit -a -m "feat: create new $${NEXT_SNAPSHOT}" - - git push origin ${DRONE_COMMIT_BRANCH} - - echo "✅ Started $${NEXT_SNAPSHOT}." - - echo "🚀 Good job, new version ${RELEASE_VERSION} was released successfully." diff --git a/.github/workflows/check-commit-message.yml b/.github/workflows/check-commit-message.yml index 0647443..96396e9 100644 --- a/.github/workflows/check-commit-message.yml +++ b/.github/workflows/check-commit-message.yml @@ -9,7 +9,7 @@ on : - synchronize push : branches : - - "develop" + - "dev" - "feature/*" - "bugfix/*" - "improvement/*" @@ -28,7 +28,7 @@ jobs : with : pattern : '^(feat|fix|docs|style|refactor|perf|test|chore|build)(.+?)?: .+' flags : 'gm' - error : 'Your commit title did not follow semantic versioning. Please see https://github.com/uJarOrg/.github/blob/develop/SEMANTIC_COMMITS.md' + error : 'Your commit title did not follow semantic versioning. Please see https://github.com/IQKV/.github/blob/dev/SEMANTIC_COMMITS.md' - name : Check Line Length uses : gsactions/commit-message-checker@v2 with : diff --git a/.husky/pre-commit b/.husky/pre-commit index 1bffa43..c1344cb 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,7 +2,7 @@ current_branch=$(git rev-parse --abbrev-ref HEAD) -main_branch="(main|master|develop)" +main_branch="(main|master|dev|develop)" if [[ $current_branch =~ $main_branch ]]; then echo -e "\033[1;31m[ERROR] Please don't commit directly to $current_branch.\033[0m"; exit 1 diff --git a/README.md b/README.md index 3ab4d1f..47b1745 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This application is a [Spring Boot](https://spring.io/guides/gs/spring-boot) app using [Maven](https://spring.io/guides/gs/maven/). You can build a jar file and run it from the command line: ``` -git clone https://github.com/uJarOrg/sample-webflux-vaadin-chat.git +git clone https://github.com/KnowHowSpringBoot/sample-webflux-vaadin-chat.git cd sample-webflux-vaadin-chat ./mvnw package java -jar target/*.jar @@ -39,7 +39,7 @@ You might also want to use Maven's `spring-boot:run` goal - applications run in 1) On the command line ``` -git clone https://github.com/uJarOrg/sample-webflux-vaadin-chat.git +git clone https://github.com/KnowHowSpringBoot/sample-webflux-vaadin-chat.git ``` 2) Inside IDE diff --git a/SEMANTIC_COMMITS.md b/SEMANTIC_COMMITS.md deleted file mode 100644 index bc1b47c..0000000 --- a/SEMANTIC_COMMITS.md +++ /dev/null @@ -1,35 +0,0 @@ -# Semantic Commit Messages - -See how a minor change to your commit message style can make you a better programmer. - -Format: `(): ` - -`` is optional - -## Example - -``` -feat: add hat wobble -^--^ ^------------^ -| | -| +-> Summary in present tense. -| -+-------> Type: chore, docs, feat, fix, refactor, style, or test. -``` - -More Examples: - -- `feat`: (new feature for the user, not a new feature for build script) -- `fix`: (bug fix for the user, not a fix to a build script) -- `docs`: (changes to the documentation) -- `style`: (formatting, missing semi colons, etc; no production code change) -- `refactor`: (refactoring production code, eg. renaming a variable) -- `test`: (adding missing tests, refactoring tests; no production code change) -- `chore`: (updating grunt tasks etc; no production code change) - -References: - -- https://www.conventionalcommits.org/ -- https://seesparkbox.com/foundry/semantic_commit_messages -- http://karma-runner.github.io/1.0/dev/git-commit-msg.html - diff --git a/package.json b/package.json index 1704e09..f8c9808 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sample-webflux-vaadin-chat", + "name": "know-how-spring-boot-sample-webflux-vaadin-chat", "version": "23.0.0", "description": "Provide an optional Git commit hooks.", "private": true, diff --git a/pom.xml b/pom.xml index 6af7cf4..842f7d8 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 - org.ujar + dev.knowhowto.sb sample-webflux-vaadin-chat 23.0.0-SNAPSHOT jar @@ -18,12 +18,12 @@ - uJar Bootcamp - https://www.ujar.org + KnowHowSpringBoot Bootcamp + https://knowhowto.dev - 1 + dimdnk Dima Denysenko coding@dimdnk.com @@ -33,7 +33,7 @@ - org.ujar.boot + dev.knowhowto.boot boot-parent-pom 23.0.0-SNAPSHOT @@ -46,7 +46,7 @@ **/*Config*.java,**/*Properties.java,**/*Test.java,**/Test*.java false false - org.ujar.webfluxvaadinchat.WebfluxVaadinChatApplication + dev.knowhowto.webfluxvaadinchat.WebfluxVaadinChatApplication @@ -55,7 +55,7 @@ spring-boot-starter-webflux - org.ujar.boot + dev.knowhowto.boot boot-starter-observability diff --git a/src/main/docker/prometheus/prometheus.yml b/src/main/docker/prometheus/prometheus.yml index 462f09f..2696564 100644 --- a/src/main/docker/prometheus/prometheus.yml +++ b/src/main/docker/prometheus/prometheus.yml @@ -1,4 +1,4 @@ -# Sample global config for monitoring uJar applications +# Sample global config for monitoring KnowHowSpringBoot applications global : scrape_interval : 15s # By default, scrape targets every 15 seconds. evaluation_interval : 15s # By default, scrape targets every 15 seconds. @@ -7,7 +7,7 @@ global : # Attach these labels to any time series or alerts when communicating with # external systems (federation, remote storage, Alertmanager). external_labels : - monitor : 'ujar' + monitor : 'knowhowto' # A scrape configuration containing exactly one endpoint to scrape: # Here it's Prometheus itself. diff --git a/src/main/java/org/ujar/webfluxvaadinchat/ChatService.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/ChatService.java similarity index 94% rename from src/main/java/org/ujar/webfluxvaadinchat/ChatService.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/ChatService.java index 38c64ee..c9a46a0 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/ChatService.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/ChatService.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import java.time.Instant; diff --git a/src/main/java/org/ujar/webfluxvaadinchat/ChatView.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/ChatView.java similarity index 96% rename from src/main/java/org/ujar/webfluxvaadinchat/ChatView.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/ChatView.java index 49fb8d7..6022d4b 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/ChatView.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/ChatView.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import jakarta.annotation.security.PermitAll; import java.util.ArrayList; diff --git a/src/main/java/org/ujar/webfluxvaadinchat/LoginView.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/LoginView.java similarity index 88% rename from src/main/java/org/ujar/webfluxvaadinchat/LoginView.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/LoginView.java index 36f69f7..f341429 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/LoginView.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/LoginView.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import com.vaadin.flow.component.login.LoginForm; import com.vaadin.flow.component.orderedlayout.VerticalLayout; diff --git a/src/main/java/org/ujar/webfluxvaadinchat/Message.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/Message.java similarity index 68% rename from src/main/java/org/ujar/webfluxvaadinchat/Message.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/Message.java index 0b22488..2b246e6 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/Message.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/Message.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import java.time.Instant; diff --git a/src/main/java/org/ujar/webfluxvaadinchat/SecurityConfiguration.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/SecurityConfiguration.java similarity index 96% rename from src/main/java/org/ujar/webfluxvaadinchat/SecurityConfiguration.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/SecurityConfiguration.java index 0908bb2..c842c55 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/SecurityConfiguration.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/SecurityConfiguration.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import java.util.Set; diff --git a/src/main/java/org/ujar/webfluxvaadinchat/WebfluxVaadinChatApplication.java b/src/main/java/dev/knowhowto/webfluxvaadinchat/WebfluxVaadinChatApplication.java similarity index 94% rename from src/main/java/org/ujar/webfluxvaadinchat/WebfluxVaadinChatApplication.java rename to src/main/java/dev/knowhowto/webfluxvaadinchat/WebfluxVaadinChatApplication.java index c09a363..679e6d7 100644 --- a/src/main/java/org/ujar/webfluxvaadinchat/WebfluxVaadinChatApplication.java +++ b/src/main/java/dev/knowhowto/webfluxvaadinchat/WebfluxVaadinChatApplication.java @@ -1,4 +1,4 @@ -package org.ujar.webfluxvaadinchat; +package dev.knowhowto.webfluxvaadinchat; import com.vaadin.flow.component.page.AppShellConfigurator; import com.vaadin.flow.component.page.Push; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index caff6d3..1eb7bbe 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -15,7 +15,7 @@ spring : name : sample-webflux-vaadin-chat vaadin : - whitelisted-packages : com.vaadin,org.vaadin,org.ujar.webfluxvaadinchat + whitelisted-packages : com.vaadin,org.vaadin,dev.knowhowto.webfluxvaadinchat logging : pattern : @@ -90,7 +90,7 @@ management : prometheus : enabled : true -ujar : +knowhowto : build : description : '@project.description@' relative-path : ${SERVER_SERVLET_CONTEXT_PATH:/} diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt index 3dab991..a3696de 100644 --- a/src/main/resources/banner.txt +++ b/src/main/resources/banner.txt @@ -1,8 +1,3 @@ -${AnsiColor.GREEN} | | -${AnsiColor.GREEN} _ _ | | __ _ _ __ -${AnsiColor.GREEN} | | | | _ | | / _` | | '__| -${AnsiColor.GREEN} | |_| | | |__| | | (_| | | | -${AnsiColor.GREEN} \__,_| \____/ \__,_| |_| ${AnsiColor.BLUE} =============================== ${AnsiColor.BLUE} Chat application example ${AnsiColor.BLUE} Running Spring Boot ${spring-boot.version}