diff --git a/gradle/wrapper/gradle-wrapper. b/.gitattributes similarity index 100% rename from gradle/wrapper/gradle-wrapper. rename to .gitattributes diff --git a/.github/workflows/bitbucket-sync.yml b/.github/workflows/bitbucket-sync.yml index a8e4ce3..167c20b 100644 --- a/.github/workflows/bitbucket-sync.yml +++ b/.github/workflows/bitbucket-sync.yml @@ -1,14 +1,14 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: Sync to bitbucket # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch push: - branches: [ main, dev ] + branches: [ main ] pull_request: - branches: [ main, dev ] + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -22,6 +22,7 @@ jobs: env: UPSTREAM: ssh://git@bitbucket.ase.in.tum.de:7999/EIST22T02/eist22t02-whattocool48.git + BITBUCKET_PUB_KEY: "[bitbucket.ase.in.tum.de]:7999,[131.159.89.140]:7999 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCO2i69e5LJibEDwVrwG9edX+xqeRB/Do+C8dNclgB5lFJjA5MlTFAZ4WewbLBeGXGAc5O64ckBlI82+FI1GwIkiKRoi/9qe+NGLmZFsjBRSz2fHLfKo/iEa8ytPP9E4iql1u7Rl+pnmY2claJ+ABQOt4XQgLWjYcIBHWpwhQ9tRjg73zUI/n/PKyEnODR14bEzJ/fBmTMgnm1ZdtSPViqLmByXgjgorCWPsRA3DrPsH3A9ncietUPj/qRbsWsPhiKK1yXXaKDHDgRD7ennVrwCAYG2hhTZEbZcjE8bbe9UY9WrRtoWLFKB/xDTn7pRv+ZxqXlcoP224we7J9s2ke1H" # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -40,8 +41,17 @@ jobs: - name: Copy ssh public_key run: echo "${{SECRETS.PUBLIC_KEY}}" > ~/.ssh/id_rsa.pub - - name: Pull upstream + - name: Add bitbucket to known SSH-HOST + run: echo ${{env.BITBUCKET_PUB_KEY}} >> ~/.ssh/known_hosts + + - name: Pull origin run: git fetch --unshallow + - name: Specify Identity in case of rebasing + run: git config --global user.email "organisation-name@github.com" && git config --global user.name "GitHub Action Runner" + + - name: Fix merge conflicts if any + run: git pull --rebase upstream main + - name: Git push to other repo run: git push upstream diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..78c6cc1 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,31 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Run Tests + +on: + pull_request: + branches: [ "dev", "main" ] + +jobs: + gradle: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + + - name: Setup and execute Gradle 'test' task + uses: gradle/gradle-build-action@v2 + with: + arguments: test diff --git a/.gitignore b/.gitignore index 8521377..f9fe8d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,92 @@ +assignment/src/ +assignment/resources/ -.idea/ +*.class +.idea +bin +build +/target/ +/target/* +*.jar +*.war +*.ear -.gradle/ +################# +# Eclipse .gitignore +# Source: https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# Eclipse Core +.project + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +################# +# Netbeans .gitignore +# Source: https://github.com/github/gitignore/blob/master/Global/NetBeans.gitignore + +nbproject/private/ build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ + + +################# +# IntelliJ .gitignore +# Source: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems +.idea +*.iws +*.iml +out + +################ +# Gradle +.gradle +!gradle/wrapper/gradle-wrapper.jar diff --git a/README.md b/README.md index b0ecac3..39bcb64 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ # EIST-Projekt 2022 + +#### main branch: +![main synced to bitbucket](https://github.com/cato447/EIST-Teamprojekt/actions/workflows/bitbucket-sync.yml/badge.svg) +![Main branch tests](https://github.com/cato447/EIST-Teamprojekt/actions/workflows/run-tests.yml/badge.svg) + +#### dev branch: +![Dev branch tests](https://github.com/cato447/EIST-Teamprojekt/actions/workflows/run-tests.yml/badge.svg?branch=dev) + ## whattocook -What to cook ist eine Webapp, die dem Nutzer die tägliche Frage: "Was koche ich heute?" abnehmen soll. +This webapp shows you meals you can cook from the ingredients you have at hand -Dazu werden aus den Zutaten im Kühlschrank des Nutzers Rezepte generiert, die dieser sofort nachmachen kann. - -Zur Zeit ist der Nutzer noch selbst dafür verantwortlich alles im Kühlschrank selber ein und auszutragen. In späteren Versionen soll dem Nutzer hier die Arbeit abgenommen werden, sodass er sich voll und ganz auf seine Ziele konzentrieren kann. +> This repo uses an [action](https://github.com/babyygemperor) written by babyygemperor to sync the main branch to bitbucket diff --git a/diagrams/ClassDiagram.PNG b/diagrams/ClassDiagram.PNG new file mode 100644 index 0000000..0087a94 Binary files /dev/null and b/diagrams/ClassDiagram.PNG differ diff --git a/diagrams/ClassDiagram.json b/diagrams/ClassDiagram.json new file mode 100644 index 0000000..c9dc4f8 --- /dev/null +++ b/diagrams/ClassDiagram.json @@ -0,0 +1 @@ +{"id":"a25ddaeb-99de-4a5b-8cf5-9a9008257d6c","title":"ClassDiagram","lastUpdate":"2022-06-03T12:39:03.909Z","diagramType":"SyntaxTree","model":{"version":"2.0.0","type":"ClassDiagram","size":{"width":2040,"height":1244},"interactive":{"elements":[],"relationships":[]},"elements":[{"id":"29eb4596-501c-4986-8067-75e789168c7d","name":"controller","type":"Package","owner":null,"bounds":{"x":1550,"y":662,"width":290,"height":340}},{"id":"a4b72657-ddd4-47b1-8524-f524bb9381a9","name":"ItemController","type":"Class","owner":"29eb4596-501c-4986-8067-75e789168c7d","bounds":{"x":1570,"y":712,"width":260,"height":252},"attributes":["d5a039ee-bbcb-435f-ba59-fabb739045ab"],"methods":["d5277b42-5116-4cff-8f1f-2aed0a9ce6ae","e47c5848-0d89-45b0-bc4e-d5fe801730f1","a2ebd6cb-c535-4a47-a0c9-834a9a55b278","81c6b19e-c62b-4f7d-9d0b-b28961d11f4b","fd686f65-4471-41e7-ad71-47ae031a80f1","b23ffd90-0903-4634-86a1-6ac8940ce1bb"]},{"id":"d5a039ee-bbcb-435f-ba59-fabb739045ab","name":"- itemService: ItemService","type":"ClassAttribute","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":752.5,"width":259,"height":30}},{"id":"d5277b42-5116-4cff-8f1f-2aed0a9ce6ae","name":"+ getItem(String): Item","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":783.5,"width":259,"height":30}},{"id":"e47c5848-0d89-45b0-bc4e-d5fe801730f1","name":"+ getItemList(): List","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":813.5,"width":259,"height":30}},{"id":"a2ebd6cb-c535-4a47-a0c9-834a9a55b278","name":"+ getItem(long): Item","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":843.5,"width":259,"height":30}},{"id":"81c6b19e-c62b-4f7d-9d0b-b28961d11f4b","name":"+ createItem(Item): Item","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":873.5,"width":259,"height":30}},{"id":"fd686f65-4471-41e7-ad71-47ae031a80f1","name":"+ updateItem(long, Item): String","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":903.5,"width":259,"height":30}},{"id":"b23ffd90-0903-4634-86a1-6ac8940ce1bb","name":"+ deleteItem(long): String","type":"ClassMethod","owner":"a4b72657-ddd4-47b1-8524-f524bb9381a9","bounds":{"x":1570.5,"y":933.5,"width":259,"height":30}},{"id":"06ba46de-51ac-4ab2-8619-2f0c89016fbc","name":"exception","type":"Package","owner":null,"bounds":{"x":50,"y":572,"width":420,"height":200}},{"id":"752a2d33-e3ad-46e0-88de-414635b6c4a4","name":"ItemNotFoundException","type":"Class","owner":"06ba46de-51ac-4ab2-8619-2f0c89016fbc","bounds":{"x":80,"y":622,"width":350,"height":132},"attributes":[],"methods":["30ec2924-1275-43ee-b2eb-4b3042a1b23c","aa9f3424-488b-42de-aab5-0983411a68c4","dc122696-bcf0-4d1c-86e7-27eccbce2f2b"]},{"id":"30ec2924-1275-43ee-b2eb-4b3042a1b23c","name":"+ ItemNotFoundException()","type":"ClassMethod","owner":"752a2d33-e3ad-46e0-88de-414635b6c4a4","bounds":{"x":80.5,"y":663.5,"width":349,"height":30}},{"id":"aa9f3424-488b-42de-aab5-0983411a68c4","name":"+ ItemNotFoundException(String)","type":"ClassMethod","owner":"752a2d33-e3ad-46e0-88de-414635b6c4a4","bounds":{"x":80.5,"y":693.5,"width":349,"height":30}},{"id":"dc122696-bcf0-4d1c-86e7-27eccbce2f2b","name":"+ ItemNotFoundException(String, Throwable)","type":"ClassMethod","owner":"752a2d33-e3ad-46e0-88de-414635b6c4a4","bounds":{"x":80.5,"y":723.5,"width":349,"height":30}},{"id":"71560e62-4e36-4198-958f-c348012ec862","name":"implementation","type":"Package","owner":null,"bounds":{"x":840,"y":322,"width":460,"height":300}},{"id":"dde6f90e-690a-4ec6-a10b-242887f393b0","name":"ItemServiceImpl","type":"Class","owner":"71560e62-4e36-4198-958f-c348012ec862","bounds":{"x":890,"y":372,"width":300,"height":222},"attributes":["afa56071-ec55-4074-bcef-a2cf095e9a8c"],"methods":["a4858dbe-5143-4865-91ad-6cd925f86473","0da4f6ee-a189-4bfa-91a1-0e74f36343f6","f03af6e7-7ba5-4b69-acbe-46b5ac86719f","a19f8dd8-1e4c-4779-bbba-53cc564e0559","9b2954c0-b7c7-4043-b28a-aa15062e2266"]},{"id":"afa56071-ec55-4074-bcef-a2cf095e9a8c","name":"- itemRepository: ItemRepository","type":"ClassAttribute","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":412.5,"width":299,"height":30}},{"id":"a4858dbe-5143-4865-91ad-6cd925f86473","name":"+ save(Item): Item","type":"ClassMethod","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":443.5,"width":299,"height":30}},{"id":"0da4f6ee-a189-4bfa-91a1-0e74f36343f6","name":"+ deleteById(long): void","type":"ClassMethod","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":473.5,"width":299,"height":30}},{"id":"f03af6e7-7ba5-4b69-acbe-46b5ac86719f","name":"+ findById(long): Optional","type":"ClassMethod","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":503.5,"width":299,"height":30}},{"id":"a19f8dd8-1e4c-4779-bbba-53cc564e0559","name":"+ findByName(String): Optional","type":"ClassMethod","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":533.5,"width":299,"height":30}},{"id":"9b2954c0-b7c7-4043-b28a-aa15062e2266","name":"+ findAll(): List","type":"ClassMethod","owner":"dde6f90e-690a-4ec6-a10b-242887f393b0","bounds":{"x":890.5,"y":563.5,"width":299,"height":30}},{"id":"b0b1f911-9de5-474c-afe8-6fe2b650c15f","name":"models","type":"Package","owner":null,"bounds":{"x":810,"y":0,"width":520,"height":242}},{"id":"cda849da-8f40-48e4-afda-304683a99bdf","name":"Item","type":"Class","owner":"b0b1f911-9de5-474c-afe8-6fe2b650c15f","bounds":{"x":850,"y":60,"width":200,"height":162},"attributes":["a095b981-9eba-4db3-a8ca-5c4717da204d","1cd4c862-2ef6-464a-9c3d-52f2374b7396","85677544-eb54-4408-9fbc-24f08c3bcff7","7bceac7f-51b4-4233-8cef-c49f7eb17af4"],"methods":[]},{"id":"a095b981-9eba-4db3-a8ca-5c4717da204d","name":"- id: Long","type":"ClassAttribute","owner":"cda849da-8f40-48e4-afda-304683a99bdf","bounds":{"x":850.5,"y":100.5,"width":199,"height":30}},{"id":"1cd4c862-2ef6-464a-9c3d-52f2374b7396","name":"- name: String","type":"ClassAttribute","owner":"cda849da-8f40-48e4-afda-304683a99bdf","bounds":{"x":850.5,"y":130.5,"width":199,"height":30}},{"id":"85677544-eb54-4408-9fbc-24f08c3bcff7","name":"- unit: Unit","type":"ClassAttribute","owner":"cda849da-8f40-48e4-afda-304683a99bdf","bounds":{"x":850.5,"y":160.5,"width":199,"height":30}},{"id":"7bceac7f-51b4-4233-8cef-c49f7eb17af4","name":"- quantity: int","type":"ClassAttribute","owner":"cda849da-8f40-48e4-afda-304683a99bdf","bounds":{"x":850.5,"y":190.5,"width":199,"height":30}},{"id":"dc8ce340-366d-4377-a877-e06c30a433b2","name":"Unit","type":"Enumeration","owner":"b0b1f911-9de5-474c-afe8-6fe2b650c15f","bounds":{"x":1100,"y":80,"width":200,"height":112},"attributes":["fc20f530-6058-4989-8038-0317982939b7","9bedf512-e078-424b-b38d-9a1d44abe647"],"methods":[]},{"id":"fc20f530-6058-4989-8038-0317982939b7","name":"GRAMMS","type":"ClassAttribute","owner":"dc8ce340-366d-4377-a877-e06c30a433b2","bounds":{"x":1100.5,"y":130.5,"width":199,"height":30}},{"id":"9bedf512-e078-424b-b38d-9a1d44abe647","name":"MILLILETERS","type":"ClassAttribute","owner":"dc8ce340-366d-4377-a877-e06c30a433b2","bounds":{"x":1100.5,"y":160.5,"width":199,"height":30}},{"id":"ccf23e35-8172-4809-8e44-7b75760f573c","name":"repositories","type":"Package","owner":null,"bounds":{"x":850,"y":682,"width":380,"height":160}},{"id":"e4488346-6d4a-456c-a9b0-47ac4c28835b","name":"ItemRepository","type":"Interface","owner":"ccf23e35-8172-4809-8e44-7b75760f573c","bounds":{"x":880,"y":732,"width":300,"height":82},"attributes":[],"methods":["07635494-c483-4109-a3d4-13d9e0dafc30"]},{"id":"07635494-c483-4109-a3d4-13d9e0dafc30","name":"+ findByName(String): Optional","type":"ClassMethod","owner":"e4488346-6d4a-456c-a9b0-47ac4c28835b","bounds":{"x":880.5,"y":783.5,"width":299,"height":30}},{"id":"33071138-fac5-46d5-8fd2-547094b709b3","name":"services","type":"Package","owner":null,"bounds":{"x":1420,"y":332,"width":520,"height":280}},{"id":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","name":"ItemService","type":"Interface","owner":"33071138-fac5-46d5-8fd2-547094b709b3","bounds":{"x":1450,"y":382,"width":470,"height":202},"attributes":[],"methods":["a369cc17-f691-4229-8218-e423ecf83b86","995ce6a8-33a4-4de6-94d3-725a265a269b","c6488114-0ade-40f3-94fd-ae71d27f2fe7","c1712248-9ddb-4ef8-95c9-ce00750577bb","0f7d0949-357b-41b0-83ce-10c2765f17e1"]},{"id":"a369cc17-f691-4229-8218-e423ecf83b86","name":"+ save(Item): Item","type":"ClassMethod","owner":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","bounds":{"x":1450.5,"y":433.5,"width":469,"height":30}},{"id":"995ce6a8-33a4-4de6-94d3-725a265a269b","name":"+ deleteById(long): void","type":"ClassMethod","owner":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","bounds":{"x":1450.5,"y":463.5,"width":469,"height":30}},{"id":"c6488114-0ade-40f3-94fd-ae71d27f2fe7","name":"+ findbyId(long): Optional","type":"ClassMethod","owner":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","bounds":{"x":1450.5,"y":493.5,"width":469,"height":30}},{"id":"c1712248-9ddb-4ef8-95c9-ce00750577bb","name":"+ findByName(String): Optional","type":"ClassMethod","owner":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","bounds":{"x":1450.5,"y":523.5,"width":469,"height":30}},{"id":"0f7d0949-357b-41b0-83ce-10c2765f17e1","name":"+ findAll(): List","type":"ClassMethod","owner":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","bounds":{"x":1450.5,"y":553.5,"width":469,"height":30}},{"id":"3ed0a7bc-d86e-4244-9129-30bb0a045dad","name":"configs","type":"Package","owner":null,"bounds":{"x":0,"y":212,"width":680,"height":140}},{"id":"d2e72ca0-215f-42ea-b196-3e771a248fbd","name":"RepositoryConfig","type":"Class","owner":"3ed0a7bc-d86e-4244-9129-30bb0a045dad","bounds":{"x":10,"y":262,"width":660,"height":72},"attributes":[],"methods":["4df79ea6-2f84-43c1-a905-8a19a275e97b"]},{"id":"4df79ea6-2f84-43c1-a905-8a19a275e97b","name":"+ configureRepositoryRestConfiguration(RepositoryRestConfiguration, CorsRegistry): void","type":"ClassMethod","owner":"d2e72ca0-215f-42ea-b196-3e771a248fbd","bounds":{"x":10.5,"y":303.5,"width":659,"height":30}},{"id":"cce50bc8-f973-475a-a73b-5e99d03866b1","name":"Application","type":"Class","owner":null,"bounds":{"x":1500,"y":42,"width":430,"height":72},"attributes":[],"methods":["04e027c4-ea70-488c-baec-7bf9e9d93220"]},{"id":"04e027c4-ea70-488c-baec-7bf9e9d93220","name":"+ simpleCorsFilter(): FilterRegistrationBean","type":"ClassMethod","owner":"cce50bc8-f973-475a-a73b-5e99d03866b1","bounds":{"x":1500.5,"y":83.5,"width":429,"height":30}},{"id":"5fc54876-b11e-4d44-ae46-084511318038","name":"RepositoryRestConfigurer","type":"Interface","owner":null,"bounds":{"x":10,"y":32,"width":670,"height":82},"attributes":[],"methods":["aeac9ff8-a442-4f52-a9e1-8f8eefc84ed5"]},{"id":"aeac9ff8-a442-4f52-a9e1-8f8eefc84ed5","name":"+ configureRepositoryRestConfiguration(RepositoryRestConfiguration, CorsRegistry): void","type":"ClassMethod","owner":"5fc54876-b11e-4d44-ae46-084511318038","bounds":{"x":10.5,"y":83.5,"width":669,"height":30}},{"id":"d7c0f47f-13cc-4356-82ae-7d6fe812d87e","name":"RuntimeException","type":"Interface","owner":null,"bounds":{"x":220,"y":482,"width":200,"height":52},"attributes":[],"methods":[]},{"id":"73d86ec3-d4e0-442b-adce-db9e904e381e","name":"JpaRepository","type":"Interface","owner":null,"bounds":{"x":1300,"y":752,"width":200,"height":52},"attributes":[],"methods":[]}],"relationships":[{"id":"02e2ca50-a075-486b-9f65-cc2965823a07","name":"","type":"ClassDependency","owner":null,"bounds":{"x":335,"y":114,"width":10,"height":148},"path":[{"x":5,"y":148},{"x":5,"y":0}],"source":{"direction":"Up","element":"d2e72ca0-215f-42ea-b196-3e771a248fbd","multiplicity":"","role":""},"target":{"direction":"Down","element":"5fc54876-b11e-4d44-ae46-084511318038","multiplicity":"","role":""}},{"id":"c0218ec1-c082-4848-aeb6-78fccc0c5065","name":"","type":"ClassDependency","owner":null,"bounds":{"x":315,"y":534,"width":10,"height":88},"path":[{"x":5,"y":88},{"x":5,"y":0}],"source":{"direction":"Up","element":"752a2d33-e3ad-46e0-88de-414635b6c4a4","multiplicity":"","role":""},"target":{"direction":"Down","element":"d7c0f47f-13cc-4356-82ae-7d6fe812d87e","multiplicity":"","role":""}},{"id":"4ee05e4e-f53e-46b6-a1fb-a6f3240f09ce","name":"","type":"ClassAggregation","owner":null,"bounds":{"x":1050,"y":126,"width":50,"height":31},"path":[{"x":50,"y":10},{"x":0,"y":10}],"source":{"direction":"Left","element":"dc8ce340-366d-4377-a877-e06c30a433b2","multiplicity":"","role":""},"target":{"direction":"Right","element":"cda849da-8f40-48e4-afda-304683a99bdf","multiplicity":"","role":""}},{"id":"89475d1a-60a7-4576-bf58-d5087237632d","name":"","type":"ClassDependency","owner":null,"bounds":{"x":1180,"y":768,"width":120,"height":31},"path":[{"x":0,"y":10},{"x":120,"y":10}],"source":{"direction":"Right","element":"e4488346-6d4a-456c-a9b0-47ac4c28835b","multiplicity":"","role":""},"target":{"direction":"Left","element":"73d86ec3-d4e0-442b-adce-db9e904e381e","multiplicity":"","role":""}},{"id":"f251f8ce-7521-4d4c-b517-8406bc575aee","name":"","type":"ClassDependency","owner":null,"bounds":{"x":1190,"y":473,"width":260,"height":31},"path":[{"x":0,"y":10},{"x":260,"y":10}],"source":{"direction":"Right","element":"dde6f90e-690a-4ec6-a10b-242887f393b0","multiplicity":"","role":""},"target":{"direction":"Left","element":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","multiplicity":"","role":""}},{"id":"45f7c7c2-e93f-4f55-ae45-14d2e93e0cc1","name":"","type":"ClassAggregation","owner":null,"bounds":{"x":1695,"y":584,"width":10,"height":128},"path":[{"x":5,"y":128},{"x":5,"y":0}],"source":{"direction":"Up","element":"a4b72657-ddd4-47b1-8524-f524bb9381a9","multiplicity":"","role":""},"target":{"direction":"Down","element":"14438ca3-0577-424d-a06e-0b75cfc9cd7d","multiplicity":"","role":""}},{"id":"085c6f22-3199-4aa7-836e-3963616500aa","name":"","type":"ClassAggregation","owner":null,"bounds":{"x":1030,"y":594,"width":10,"height":138},"path":[{"x":5,"y":138},{"x":5,"y":0}],"source":{"direction":"Up","element":"e4488346-6d4a-456c-a9b0-47ac4c28835b","multiplicity":"","role":""},"target":{"direction":"Down","element":"dde6f90e-690a-4ec6-a10b-242887f393b0","multiplicity":"","role":""}}],"assessments":[]}} \ No newline at end of file diff --git a/diagrams/CommunicationDiagram.json b/diagrams/CommunicationDiagram.json new file mode 100644 index 0000000..8087f56 --- /dev/null +++ b/diagrams/CommunicationDiagram.json @@ -0,0 +1 @@ +{"id":"d471c222-fd94-45bc-9c5d-cbd077927974","title":"CommunicationDiagram","lastUpdate":"2022-06-03T23:11:17.190Z","diagramType":"CommunicationDiagram","model":{"version":"2.0.0","type":"CommunicationDiagram","size":{"width":1162.033332824707,"height":540},"interactive":{"elements":[],"relationships":[]},"elements":[{"id":"78dc4f67-83e0-4811-90a0-9bf6457a1999","name":"ServiceOne:ItemServiceImpl","type":"ObjectName","owner":null,"bounds":{"x":0,"y":250,"width":250,"height":222},"attributes":["44d8e2b7-e7ad-4c56-be07-5bb5de6c4b13"],"methods":["ef35ab35-bdf4-4792-9dfd-4a2ad97d0dbb","047bf9c5-0b3a-4035-a8cf-c57e1e60c212","c78e2d78-5198-427b-9103-0107e05ef570","a74d539f-a39c-4e96-ac1e-f4a67084dade","47f3fece-f1df-449e-9f5c-79ea88256cba"]},{"id":"44d8e2b7-e7ad-4c56-be07-5bb5de6c4b13","name":"itemRepository","type":"ObjectAttribute","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":290.5,"width":249,"height":30}},{"id":"ef35ab35-bdf4-4792-9dfd-4a2ad97d0dbb","name":"save(Item)","type":"ObjectMethod","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":321.5,"width":249,"height":30}},{"id":"047bf9c5-0b3a-4035-a8cf-c57e1e60c212","name":"deleteById(long)","type":"ObjectMethod","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":351.5,"width":249,"height":30}},{"id":"c78e2d78-5198-427b-9103-0107e05ef570","name":"findById(long)","type":"ObjectMethod","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":381.5,"width":249,"height":30}},{"id":"a74d539f-a39c-4e96-ac1e-f4a67084dade","name":"findByName(String)","type":"ObjectMethod","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":411.5,"width":249,"height":30}},{"id":"47f3fece-f1df-449e-9f5c-79ea88256cba","name":"findAll()","type":"ObjectMethod","owner":"78dc4f67-83e0-4811-90a0-9bf6457a1999","bounds":{"x":0.5,"y":441.5,"width":249,"height":30}},{"id":"aec1a0e3-b270-42fc-9392-2ce32ccb448c","name":"Rice:Item","type":"ObjectName","owner":null,"bounds":{"x":270,"y":0,"width":200,"height":162},"attributes":["76083d48-1efd-4015-b642-4381b8e3fd62","be10ccc4-96e5-493f-8504-c2d86f02bf67","d85f9235-8d25-4a37-afde-7fd635839e7e","0ad04c53-afe5-4489-8e92-b9e54aa07641"],"methods":[]},{"id":"76083d48-1efd-4015-b642-4381b8e3fd62","name":"id","type":"ObjectAttribute","owner":"aec1a0e3-b270-42fc-9392-2ce32ccb448c","bounds":{"x":270.5,"y":40.5,"width":199,"height":30}},{"id":"be10ccc4-96e5-493f-8504-c2d86f02bf67","name":"name","type":"ObjectAttribute","owner":"aec1a0e3-b270-42fc-9392-2ce32ccb448c","bounds":{"x":270.5,"y":70.5,"width":199,"height":30}},{"id":"d85f9235-8d25-4a37-afde-7fd635839e7e","name":"unit","type":"ObjectAttribute","owner":"aec1a0e3-b270-42fc-9392-2ce32ccb448c","bounds":{"x":270.5,"y":100.5,"width":199,"height":30}},{"id":"0ad04c53-afe5-4489-8e92-b9e54aa07641","name":"quantity","type":"ObjectAttribute","owner":"aec1a0e3-b270-42fc-9392-2ce32ccb448c","bounds":{"x":270.5,"y":130.5,"width":199,"height":30}},{"id":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","name":"ControllerOne:ItemController","type":"ObjectName","owner":null,"bounds":{"x":490,"y":240,"width":250,"height":252},"attributes":["1acf47f1-34c2-4aba-be87-b2da31b73470"],"methods":["7320a53b-024b-4f4a-a8f4-551866217f07","78bdea5b-1c66-4166-9d85-eaf78dd48404","1fb43fbc-2c53-44fc-ae52-b26cd7005162","a94a452c-2b42-4e8d-b339-7177e8ea7af8","c4250d75-d15d-4131-a72a-6f5d785bd9f8","2e119348-d2f0-4fcb-a6d1-4a077b08b5a8"]},{"id":"1acf47f1-34c2-4aba-be87-b2da31b73470","name":"itemService","type":"ObjectAttribute","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":280.5,"width":249,"height":30}},{"id":"7320a53b-024b-4f4a-a8f4-551866217f07","name":"getItem(String)","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":311.5,"width":249,"height":30}},{"id":"78bdea5b-1c66-4166-9d85-eaf78dd48404","name":"getItemList()","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":341.5,"width":249,"height":30}},{"id":"1fb43fbc-2c53-44fc-ae52-b26cd7005162","name":"getItem(long)","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":371.5,"width":249,"height":30}},{"id":"a94a452c-2b42-4e8d-b339-7177e8ea7af8","name":"createItem(Item)","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":401.5,"width":249,"height":30}},{"id":"c4250d75-d15d-4131-a72a-6f5d785bd9f8","name":"updateItem(long, Item)","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":431.5,"width":249,"height":30}},{"id":"2e119348-d2f0-4fcb-a6d1-4a077b08b5a8","name":"deleteItem(long)","type":"ObjectMethod","owner":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f","bounds":{"x":490.5,"y":461.5,"width":249,"height":30}}],"relationships":[{"id":"853f4c18-5a13-4029-a4c5-c1f3a730e293","name":"","type":"CommunicationLink","owner":null,"bounds":{"x":250,"y":316,"width":240,"height":46},"path":[{"x":0,"y":45},{"x":240,"y":45}],"source":{"direction":"Right","element":"78dc4f67-83e0-4811-90a0-9bf6457a1999"},"target":{"direction":"Left","element":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f"},"messages":[{"id":"20651811-5159-4390-b8b1-3425480942e2","name":"2:createItem(Rice)","bounds":{"x":51.875,"y":18.75,"width":136.25,"height":18.75},"owner":null,"resizeFrom":"bottomRight","direction":"source","type":"CommunicationLinkMessage"},{"id":"08de3b60-e3ea-4012-ac94-2c3ab1034a4f","name":"4:deleteItem(id)","bounds":{"x":62.5,"y":0,"width":115,"height":18.75},"owner":null,"resizeFrom":"bottomRight","direction":"source","type":"CommunicationLinkMessage"}]},{"id":"9daa8449-0d95-41d6-bfac-f2bc80d04c2e","name":"","type":"CommunicationLink","owner":null,"bounds":{"x":615,"y":200,"width":316.0166664123535,"height":166},"path":[{"x":0,"y":40},{"x":0,"y":0},{"x":165,"y":0},{"x":165,"y":166},{"x":125,"y":166}],"source":{"direction":"Up","element":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f"},"target":{"direction":"Right","element":"a78c1d05-930c-4e7d-90ed-9b42e8c6892f"},"messages":[{"id":"1746ca1f-5bed-49ee-ad3f-d2e62eb62a55","name":"1:findAll()","bounds":{"x":192.26666641235352,"y":0.5,"width":71.25,"height":18.75},"owner":null,"resizeFrom":"bottomRight","direction":"source","type":"CommunicationLinkMessage"},{"id":"5c616c3d-1c06-4cf3-a6ab-905175bf2299","name":"3:saveItem(Rice)","bounds":{"x":192.26666641235352,"y":19.25,"width":123.75,"height":18.75},"owner":null,"resizeFrom":"bottomRight","direction":"source","type":"CommunicationLinkMessage"}]}],"assessments":[]}} \ No newline at end of file diff --git a/diagrams/CommunicationDiagram.png b/diagrams/CommunicationDiagram.png new file mode 100644 index 0000000..6e1edeb Binary files /dev/null and b/diagrams/CommunicationDiagram.png differ diff --git a/diagrams/UseCaseDiagram.json b/diagrams/UseCaseDiagram.json new file mode 100644 index 0000000..5849e5f --- /dev/null +++ b/diagrams/UseCaseDiagram.json @@ -0,0 +1 @@ +{"id":"c09249cb-f5ff-4158-869d-595d7193bf90","title":"UseCaseDiagram","lastUpdate":"2022-06-04T07:15:04.008Z","diagramType":"UseCaseDiagram","model":{"version":"2.0.0","type":"UseCaseDiagram","size":{"width":1420,"height":900},"interactive":{"elements":[],"relationships":[]},"elements":[{"id":"265207df-b024-4537-b05d-ae2bcd4304f6","name":"User","type":"UseCaseActor","owner":null,"bounds":{"x":0,"y":300,"width":90,"height":140}},{"id":"c1660237-4f72-49a5-8e28-39a882e19e32","name":"WhatToCook","type":"UseCaseSystem","owner":null,"bounds":{"x":160,"y":0,"width":1110,"height":660}},{"id":"82b06ee8-645b-4015-8323-bdcbfba06e00","name":"Delete Item","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":850,"y":510,"width":200,"height":100}},{"id":"7dcb2094-7dbe-4ac8-b10f-e61eaab62b78","name":"View Items","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":510,"y":510,"width":200,"height":100}},{"id":"6933e639-051a-44e7-bc17-b4d805902ff6","name":"Create Item","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":500,"y":320,"width":200,"height":100}},{"id":"a9d47cd9-cfd2-41d3-a6e7-78e8c4d658a5","name":"Start Application","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":190,"y":320,"width":200,"height":100}},{"id":"799c4d99-4ec1-4c78-90bb-ecf13980a951","name":"Save Item","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":840,"y":320,"width":200,"height":100}},{"id":"2539166f-f9b6-4379-9a37-89d22e520960","name":"Search for a Item","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":510,"y":100,"width":200,"height":100}},{"id":"99a890ec-f7cc-4beb-bc41-282a030b10a0","name":"Search by Name","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":830,"y":30,"width":200,"height":100}},{"id":"cb48fa09-4858-4580-84c7-58001f8d8a4f","name":"Search by Id","type":"UseCase","owner":"c1660237-4f72-49a5-8e28-39a882e19e32","bounds":{"x":830,"y":150,"width":200,"height":100}}],"relationships":[{"id":"7b5e8013-c2cf-4ecc-967f-9ce713894f9d","name":"","type":"UseCaseAssociation","owner":null,"bounds":{"x":90,"y":370,"width":100,"height":1},"path":[{"x":0,"y":0},{"x":100,"y":0}],"source":{"direction":"Right","element":"265207df-b024-4537-b05d-ae2bcd4304f6"},"target":{"direction":"Left","element":"a9d47cd9-cfd2-41d3-a6e7-78e8c4d658a5"}},{"id":"e860f1ac-1a42-4134-86b3-dd6f24a3953d","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":390,"y":370,"width":120,"height":190},"path":[{"x":0,"y":0},{"x":120,"y":190}],"source":{"direction":"Right","element":"a9d47cd9-cfd2-41d3-a6e7-78e8c4d658a5"},"target":{"direction":"Left","element":"7dcb2094-7dbe-4ac8-b10f-e61eaab62b78"}},{"id":"9300498a-9640-4b81-82af-3ca472b15bd9","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":710,"y":560,"width":140,"height":1},"path":[{"x":0,"y":0},{"x":140,"y":0}],"source":{"direction":"Right","element":"7dcb2094-7dbe-4ac8-b10f-e61eaab62b78"},"target":{"direction":"Left","element":"82b06ee8-645b-4015-8323-bdcbfba06e00"}},{"id":"85a89157-45e6-4071-89a0-c2ce601eaebe","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":390,"y":370,"width":110,"height":1},"path":[{"x":0,"y":0},{"x":110,"y":0}],"source":{"direction":"Right","element":"a9d47cd9-cfd2-41d3-a6e7-78e8c4d658a5"},"target":{"direction":"Left","element":"6933e639-051a-44e7-bc17-b4d805902ff6"}},{"id":"231ecf23-f685-4607-a9af-d9bb46b6cb7e","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":700,"y":370,"width":140,"height":1},"path":[{"x":0,"y":0},{"x":140,"y":0}],"source":{"direction":"Right","element":"6933e639-051a-44e7-bc17-b4d805902ff6"},"target":{"direction":"Left","element":"799c4d99-4ec1-4c78-90bb-ecf13980a951"}},{"id":"f369d212-ecb9-4d18-9c11-91b403432b10","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":390,"y":150,"width":120,"height":220},"path":[{"x":0,"y":220},{"x":120,"y":0}],"source":{"direction":"Right","element":"a9d47cd9-cfd2-41d3-a6e7-78e8c4d658a5"},"target":{"direction":"Left","element":"2539166f-f9b6-4379-9a37-89d22e520960"}},{"id":"d7605707-4ce0-4628-b409-c27642753313","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":710,"y":80,"width":120,"height":70},"path":[{"x":0,"y":70},{"x":120,"y":0}],"source":{"direction":"Right","element":"2539166f-f9b6-4379-9a37-89d22e520960"},"target":{"direction":"Left","element":"99a890ec-f7cc-4beb-bc41-282a030b10a0"}},{"id":"aa1ae48c-e650-457c-8713-287c352e7acd","name":"","type":"UseCaseInclude","owner":null,"bounds":{"x":710,"y":150,"width":120,"height":50},"path":[{"x":0,"y":0},{"x":120,"y":50}],"source":{"direction":"Right","element":"2539166f-f9b6-4379-9a37-89d22e520960"},"target":{"direction":"Left","element":"cb48fa09-4858-4580-84c7-58001f8d8a4f"}}],"assessments":[]}} \ No newline at end of file diff --git a/diagrams/UseCaseDiagram.png b/diagrams/UseCaseDiagram.png new file mode 100644 index 0000000..6a8c86d Binary files /dev/null and b/diagrams/UseCaseDiagram.png differ diff --git a/gradlew.bat b/gradlew.bat index ac1b06f..107acd3 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -1,89 +1,89 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem https://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Resolve any "." and ".." in APP_HOME to make it shorter. -for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto execute - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega