Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 6c5f326

Browse files
authored
Merge pull request #5 from E-Edu/issue/3
Base java setup
2 parents 9223d39 + 7679a7a commit 6c5f326

7 files changed

Lines changed: 492 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
compile:
7+
runs-on: ubuntu-latest
8+
name: Build
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Setup java
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 1.8
15+
- run: mvn clean install -Dcheckstyle.skip -q

.github/workflows/checkstyle.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Checkstyle
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
compile:
7+
runs-on: ubuntu-latest
8+
name: Checkstyle
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Setup java
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 1.8
15+
- run: mvn checkstyle:check -q

.gitignore

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
2+
# Created by https://www.gitignore.io/api/java,maven,eclipse,netbeans,intellij+all
3+
# Edit at https://www.gitignore.io/?templates=java,maven,eclipse,netbeans,intellij+all
4+
5+
### Eclipse ###
6+
.metadata
7+
bin/
8+
tmp/
9+
*.tmp
10+
*.bak
11+
*.swp
12+
*~.nib
13+
local.properties
14+
.settings/
15+
.loadpath
16+
.recommenders
17+
18+
# External tool builders
19+
.externalToolBuilders/
20+
21+
# Locally stored "Eclipse launch configurations"
22+
*.launch
23+
24+
# PyDev specific (Python IDE for Eclipse)
25+
*.pydevproject
26+
27+
# CDT-specific (C/C++ Development Tooling)
28+
.cproject
29+
30+
# CDT- autotools
31+
.autotools
32+
33+
# Java annotation processor (APT)
34+
.factorypath
35+
36+
# PDT-specific (PHP Development Tools)
37+
.buildpath
38+
39+
# sbteclipse plugin
40+
.target
41+
42+
# Tern plugin
43+
.tern-project
44+
45+
# TeXlipse plugin
46+
.texlipse
47+
48+
# STS (Spring Tool Suite)
49+
.springBeans
50+
51+
# Code Recommenders
52+
.recommenders/
53+
54+
# Annotation Processing
55+
.apt_generated/
56+
57+
# Scala IDE specific (Scala & Java development for Eclipse)
58+
.cache-main
59+
.scala_dependencies
60+
.worksheet
61+
62+
### Eclipse Patch ###
63+
# Eclipse Core
64+
.project
65+
66+
# JDT-specific (Eclipse Java Development Tools)
67+
.classpath
68+
69+
# Annotation Processing
70+
.apt_generated
71+
72+
.sts4-cache/
73+
74+
### Intellij+all ###
75+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
76+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
77+
78+
# User-specific stuff
79+
.idea/**/workspace.xml
80+
.idea/**/tasks.xml
81+
.idea/**/usage.statistics.xml
82+
.idea/**/dictionaries
83+
.idea/**/shelf
84+
85+
# Generated files
86+
.idea/**/contentModel.xml
87+
88+
# Sensitive or high-churn files
89+
.idea/**/dataSources/
90+
.idea/**/dataSources.ids
91+
.idea/**/dataSources.local.xml
92+
.idea/**/sqlDataSources.xml
93+
.idea/**/dynamic.xml
94+
.idea/**/uiDesigner.xml
95+
.idea/**/dbnavigator.xml
96+
97+
# Gradle
98+
.idea/**/gradle.xml
99+
.idea/**/libraries
100+
101+
# Gradle and Maven with auto-import
102+
# When using Gradle or Maven with auto-import, you should exclude module files,
103+
# since they will be recreated, and may cause churn. Uncomment if using
104+
# auto-import.
105+
# .idea/modules.xml
106+
# .idea/*.iml
107+
# .idea/modules
108+
# *.iml
109+
# *.ipr
110+
111+
# CMake
112+
cmake-build-*/
113+
114+
# Mongo Explorer plugin
115+
.idea/**/mongoSettings.xml
116+
117+
# File-based project format
118+
*.iws
119+
120+
# IntelliJ
121+
out/
122+
123+
# mpeltonen/sbt-idea plugin
124+
.idea_modules/
125+
126+
# JIRA plugin
127+
atlassian-ide-plugin.xml
128+
129+
# Cursive Clojure plugin
130+
.idea/replstate.xml
131+
132+
# Crashlytics plugin (for Android Studio and IntelliJ)
133+
com_crashlytics_export_strings.xml
134+
crashlytics.properties
135+
crashlytics-build.properties
136+
fabric.properties
137+
138+
# Editor-based Rest Client
139+
.idea/httpRequests
140+
141+
# Android studio 3.1+ serialized cache file
142+
.idea/caches/build_file_checksums.ser
143+
144+
### Intellij+all Patch ###
145+
# Ignores the whole .idea folder and all .iml files
146+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
147+
148+
.idea/
149+
150+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
151+
152+
*.iml
153+
modules.xml
154+
.idea/misc.xml
155+
*.ipr
156+
157+
# Sonarlint plugin
158+
.idea/sonarlint
159+
160+
### Java ###
161+
# Compiled class file
162+
*.class
163+
164+
# Log file
165+
*.log
166+
167+
# BlueJ files
168+
*.ctxt
169+
170+
# Mobile Tools for Java (J2ME)
171+
.mtj.tmp/
172+
173+
# Package Files #
174+
*.jar
175+
*.war
176+
*.nar
177+
*.ear
178+
*.zip
179+
*.tar.gz
180+
*.rar
181+
182+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
183+
hs_err_pid*
184+
185+
### Maven ###
186+
target/
187+
pom.xml.tag
188+
pom.xml.releaseBackup
189+
pom.xml.versionsBackup
190+
pom.xml.next
191+
release.properties
192+
dependency-reduced-pom.xml
193+
buildNumber.properties
194+
.mvn/timing.properties
195+
.mvn/wrapper/maven-wrapper.jar
196+
.flattened-pom.xml
197+
198+
### NetBeans ###
199+
**/nbproject/private/
200+
**/nbproject/Makefile-*.mk
201+
**/nbproject/Package-*.bash
202+
build/
203+
nbbuild/
204+
dist/
205+
nbdist/
206+
.nb-gradle/
207+
208+
# End of https://www.gitignore.io/api/java,maven,eclipse,netbeans,intellij+all

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
![GitHub](https://img.shields.io/github/license/E-edu/java-common)
2+
![GitHub top language](https://img.shields.io/github/languages/top/E-edu/java-common)
3+
4+
![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/E-edu/java-common)
5+
6+
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/E-Edu/java-common/master?label=last%20commit%20%28master%29)
7+
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/E-Edu/java-common/experimental?label=last%20commit%20%28experimental%29)
8+
9+
# Gewia Common
10+
11+
This project contains the commonly shared code for all our
12+
java based micro services (e.g. task and gateway).
13+
14+
This repository also is our reference implementation for some things.
15+
16+
## Scope
17+
![Maven Central](https://img.shields.io/maven-central/v/com.gewia.common/scope)
18+
19+
[Based on this meeting changelog](https://github.com/E-Edu/concept/blob/master/changelog/meeting/20200420-conceptmeeting.md#8-roles--permissions)
20+
21+
We have a custom implementation of the widely known "scopes" used in OAuth2 for example.
22+
23+
This implementation standardized scopes for
24+
every Gewia related project - so this is the reference implementation.
25+
26+
Some special features:
27+
- Implementations with and without restrictions
28+
- BasicScope (no restrictions)
29+
- MicroServiceScope
30+
- microService.topic.mode.scope.extra
31+
- Merging (and de-merging)
32+
- user.email.read+write+delete.all+beta
33+
- Pre-defined scopes
34+
- none (default)
35+
- own
36+
- self (only applicable to topics regarding a user itself)
37+
- all
38+
- beta
39+
- Pre-defined modes
40+
- read
41+
- write
42+
- delete
43+
44+
## License
45+
46+
This project is licensed under the MIT license.

0 commit comments

Comments
 (0)