Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit 82160f6

Browse files
author
Christian Zirkelbach
authored
Merge pull request #121 from ExplorViz/dev-1
Integrate dev-1 for Release Version 1.5.0
2 parents 33a340a + 5a6421d commit 82160f6

File tree

221 files changed

+9549
-2580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+9549
-2580
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
target/
2+
.idea/
3+
**/out
24

35
build
46
.gradle
57

8+
69
bin
710
.classpath
11+
**/out/
812

913
.project
14+
.idea/
1015

1116
.DS_Store
1217

1318
.gitmodules
1419

15-
.settings/*
20+
**/.settings/*
1621

1722
*/.settings/*
1823
!*/.settings/edu.umd.cs.findbugs.core.prefs

.travis.yml

Lines changed: 47 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,95 @@
11
language: java
22

3-
env:
4-
global:
5-
- MONGODB_VERSION=4.0.6
6-
73
services:
8-
- mongodb
94
- docker
10-
- redis-server
115

126
jobs:
137
fast_finish: true
148
allow_failures:
15-
- jdk: oraclejdk8
9+
- jdk: oraclejdk11
1610
include:
17-
- jdk: openjdk8
18-
- jdk: oraclejdk8
19-
11+
- stage: test
12+
name: "Unit Testing"
13+
jdk: openjdk11
14+
script: ./gradlew clean test
15+
16+
- stage: test
17+
name: "Unit Testing (oraclejdk11)"
18+
jdk: oraclejdk11
19+
script: ./gradlew clean test
20+
21+
- stage: test
22+
name: "Integration Testing"
23+
jdk: openjdk11
24+
script: ./gradlew clean integrationTest
25+
26+
- stage: test
27+
name: "API Testing"
28+
jdk: openjdk11
29+
script: ./gradlew clean apiTest
30+
31+
- stage: test
32+
name: "Source Code Analysis"
33+
jdk: openjdk11
34+
script: ./gradlew checkstyle pmd spotbugs
35+
36+
- stage: snapshot
37+
name: "Snapshot Publishing"
38+
if: (type = push) AND ((branch = dev-1) OR (branch = master))
39+
jdk: openjdk11
40+
script: ./gradlew clean landscape-service:landscape-model:uploadArchives settings-service:settings-model:uploadArchives user-service:user-model:uploadArchives
41+
2042
- stage: deploy
2143
name: "Docker Image: Analysis Service"
2244
if: (type = push) AND ((branch = dev-1) OR (branch = master))
23-
jdk: openjdk8
45+
jdk: openjdk11
2446
script: cd analysis-service && ../.travis/docker_push.sh
25-
47+
2648
- stage: deploy
2749
name: "Docker Image: User Service"
2850
if: (type = push) AND ((branch = dev-1) OR (branch = master))
29-
jdk: openjdk8
51+
jdk: openjdk11
3052
script: cd user-service && ../.travis/docker_push.sh
31-
53+
3254
- stage: deploy
3355
name: "Docker Image: Discovery Service"
3456
if: (type = push) AND ((branch = dev-1) OR (branch = master))
35-
jdk: openjdk8
57+
jdk: openjdk11
3658
script: cd discovery-service && ../.travis/docker_push.sh
37-
59+
3860
- stage: deploy
3961
name: "Docker Image: Landscape Service"
4062
if: (type = push) AND ((branch = dev-1) OR (branch = master))
41-
jdk: openjdk8
63+
jdk: openjdk11
4264
script: cd landscape-service && ../.travis/docker_push.sh
4365

4466
- stage: deploy
4567
name: "Docker Image: History Service"
4668
if: (type = push) AND ((branch = dev-1) OR (branch = master))
47-
jdk: openjdk8
69+
jdk: openjdk11
4870
script: cd history-service && ../.travis/docker_push.sh
49-
71+
5072
- stage: deploy
5173
name: "Docker Image: Broadcast Service"
5274
if: (type = push) AND ((branch = dev-1) OR (branch = master))
53-
jdk: openjdk8
75+
jdk: openjdk11
5476
script: cd broadcast-service && ../.travis/docker_push.sh
5577

5678
- stage: deploy
5779
name: "Docker Image: Settings Service"
5880
if: (type = push) AND ((branch = dev-1) OR (branch = master))
59-
jdk: openjdk8
81+
jdk: openjdk11
6082
script: cd settings-service && ../.travis/docker_push.sh
61-
83+
6284
- stage: documentation
6385
name: "Publish documentation"
6486
if: (type = push) AND (branch = master)
6587
script: chmod +x .travis/javadoc-push.sh && .travis/javadoc-push.sh
66-
88+
6789
before_script:
6890
- chmod +x .travis/docker_push.sh
6991

70-
before_install:
71-
- chmod +x .travis/mongoDB_setup.sh
72-
- .travis/mongoDB_setup.sh
73-
7492
branches:
7593
only:
76-
- master
77-
- dev-1
94+
- master
95+
- dev-1

README.MD

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,21 @@ This is only the backend, you will need the [explorviz-frontend](https://github.
2121
This gradle project includes or installs every necessary dependency.
2222

2323
## Reference
24-
How to cite ExplorViz:
24+
Citing ExplorViz as a tool:
2525

2626
Florian Fittkau, Alexander Krause, Wilhelm Hasselbring (2017): Software landscape and application visualization for system comprehension with ExplorViz. Information and Software Technology, Volume 87. pp. 259-277. DOI https://doi.org/10.1016/j.infsof.2016.07.004.
2727

2828
[[BibTex]](http://eprints.uni-kiel.de/cgi/export/eprint/33464/BibTeX/cau-eprint-33464.bib) | [[Endnote]](http://eprints.uni-kiel.de/cgi/export/eprint/33464/EndNote/cau-eprint-33464.enw)
2929

30+
Citing ExplorViz' collaborative modularization process:
31+
32+
Zirkelbach, Christian, Krause, Alexander and Hasselbring, Wilhelm (2019): Modularization of Research Software for Collaborative Open Source Development. In Proceedings of the Ninth International Conference on Advanced Collaborative Networks, Systems and Applications (COLLA 2019), June 30 - July 04, 2019, Rome, Italy.
33+
34+
[[BibTex]](http://eprints.uni-kiel.de/cgi/export/eprint/46777/BibTeX/cau-eprint-46777.bib) | [[Endnote]](http://eprints.uni-kiel.de/cgi/export/eprint/46777/EndNote/cau-eprint-46777.enw)
35+
3036
## Documentation
31-
The API documentation is available [here](https://explorviz.github.io/explorviz-backend/).
37+
- The API documentation is available [here](https://explorviz.github.io/explorviz-backend/)
38+
* The documentation for endpoints of services (SwaggerUI) is available [here](http://localhost:8001), once all services are started
3239

3340
## Eclipse Setup
3441
1. Download the latest [Eclipse IDE for Java Developers](http://www.eclipse.org/downloads/eclipse-packages/) (ExplorViz requires JDK 8 compliance)
@@ -47,7 +54,6 @@ The API documentation is available [here](https://explorviz.github.io/explorviz-
4754
* Generating API Documentation: Travis CI automatically builds all Javadoc on successful master-branch builds
4855

4956
## Quick start with sample (dummy) monitoring
50-
5157
1. Follow the above [Setup Development](#setup-development) procedure
5258
2. Clone [TestApplication](https://github.com/czirkelbach/kiekerSampleApplication)
5359
3. Start the [TestApplication](https://github.com/czirkelbach/kiekerSampleApplication) as described [here](https://github.com/czirkelbach/kiekerSampleApplication/blob/master/README.md).

analysis-service/.settings/org.eclipse.jdt.core.prefs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
3+
org.eclipse.jdt.core.compiler.compliance=11
4+
org.eclipse.jdt.core.compiler.source=11
25
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
36
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
47
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false

analysis-service/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM openjdk:8-alpine
1+
## SWITCH TO JRE AFTER ANALYSIS REBUILD
2+
3+
FROM adoptopenjdk/openjdk11:jdk-11.0.4_11-alpine-slim
24

35
RUN mkdir /explorviz
46
WORKDIR /explorviz

analysis-service/build.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
plugins {
22
id "application"
3-
id "com.github.johnrengelman.shadow" version "4.0.4"
3+
id "com.github.johnrengelman.shadow" version "5.1.0"
44
id "com.github.spotbugs" version "1.6.10"
5+
id "maven"
56
}
67

78
// Force new Dependencies
@@ -25,6 +26,12 @@ dependencies {
2526
implementation group: 'net.kieker-monitoring', name: 'kieker', version: '1.14-SNAPSHOT'
2627
}
2728

29+
// disable integration tests, since there are none
30+
integrationTest.enabled = false
31+
32+
// disable api tests, since there are none
33+
apiTest.enabled = false
34+
2835
assemble.dependsOn shadowJar
2936
jar.enabled = false
3037

@@ -41,7 +48,8 @@ application {
4148
}
4249

4350
shadowJar {
44-
archiveName = "explorviz-${project.name}.${extension}"
51+
baseName = "explorviz-${project.name}"
52+
classifier = null
4553
}
4654

4755
spotbugs {
@@ -68,8 +76,4 @@ task spotbugs {
6876

6977
dependsOn 'spotbugsMain'
7078
dependsOn 'spotbugsTest'
71-
}
72-
73-
artifacts {
74-
archives shadowJar
7579
}

settings-service/settings-service-model/.settings/org.eclipse.jdt.core.prefs renamed to broadcast-service/.settings/org.eclipse.jdt.core.prefs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
3+
org.eclipse.jdt.core.compiler.compliance=11
4+
org.eclipse.jdt.core.compiler.source=11
25
org.eclipse.jdt.core.formatter.align_assignment_statements_on_columns=false
36
org.eclipse.jdt.core.formatter.align_fields_grouping_blank_lines=2147483647
47
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
@@ -120,6 +123,8 @@ org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=d
120123
org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
121124
org.eclipse.jdt.core.formatter.insert_space_after_additive_operator=insert
122125
org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
126+
org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_case=insert
127+
org.eclipse.jdt.core.formatter.insert_space_after_arrow_in_switch_default=insert
123128
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
124129
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
125130
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
@@ -150,6 +155,7 @@ org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declar
150155
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
151156
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
152157
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
158+
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_switch_case_expressions=insert
153159
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
154160
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
155161
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
@@ -188,6 +194,8 @@ org.eclipse.jdt.core.formatter.insert_space_after_string_concatenation=insert
188194
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
189195
org.eclipse.jdt.core.formatter.insert_space_before_additive_operator=insert
190196
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
197+
org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_case=insert
198+
org.eclipse.jdt.core.formatter.insert_space_before_arrow_in_switch_default=insert
191199
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
192200
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
193201
org.eclipse.jdt.core.formatter.insert_space_before_bitwise_operator=insert
@@ -234,6 +242,7 @@ org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_decla
234242
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
235243
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
236244
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
245+
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_switch_case_expressions=do not insert
237246
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
238247
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
239248
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
formatter_profile=_CAU-SE-Style
3+
formatter_settings_version=16

broadcast-service/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM openjdk:8-alpine
1+
FROM openjdk:11-jre-slim
22

33
RUN mkdir /explorviz
44
WORKDIR /explorviz

broadcast-service/build.gradle

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
plugins {
22
id "application"
3-
id "com.github.johnrengelman.shadow" version "4.0.4"
3+
id "com.github.johnrengelman.shadow" version "5.1.0"
44
id "com.github.spotbugs" version "1.6.10"
5+
id "maven"
56
}
67

78
// Force new Dependencies
@@ -12,28 +13,42 @@ configurations.all {
1213

1314
dependencies {
1415

16+
// Swagger
17+
implementation group: 'io.swagger.core.v3', name: 'swagger-core', version: '2.0.8'
18+
implementation group: 'io.swagger.core.v3', name: 'swagger-jaxrs2', version: '2.0.8'
19+
20+
implementation project(':landscape-service:landscape-model')
21+
implementation project(':user-service:user-model')
22+
23+
1524
// ExplorViz Shared Dependencies
1625
if(useRemoteSharedProject.toBoolean()) {
17-
implementation "com.github.explorviz.explorviz-backend-shared:config-injection:${sharedProjectVersion}"
18-
implementation "com.github.explorviz.explorviz-backend-shared:security:${sharedProjectVersion}"
19-
implementation "com.github.explorviz.explorviz-backend-shared:exception-handling:${sharedProjectVersion}"
20-
implementation "com.github.explorviz.explorviz-backend-shared:common-concerns:${sharedProjectVersion}"
21-
implementation "com.github.explorviz.explorviz-backend-shared:landscape-model:${sharedProjectVersion}"
26+
implementation group: 'net.explorviz', name: 'config-injection', version: "${sharedProjectVersion}"
27+
implementation group: 'net.explorviz', name: 'security', version: "${sharedProjectVersion}"
28+
implementation group: 'net.explorviz', name: 'exception-handling', version: "${sharedProjectVersion}"
29+
implementation group: 'net.explorviz', name: 'common-concerns', version: "${sharedProjectVersion}"
2230
}
2331
else {
2432
implementation project(':config-injection')
2533
implementation project(':security')
2634
implementation project(':exception-handling')
2735
implementation project(':common-concerns')
28-
implementation project(':landscape-model')
29-
}
30-
36+
}
37+
38+
implementation project(':landscape-service:landscape-model')
39+
3140
// SSE context for injection
3241
implementation group: 'org.glassfish.jersey.media', name: 'jersey-media-sse', version: '2.27'
3342

3443
implementation group: 'org.apache.kafka', name: 'kafka_2.12', version: '2.2.0'
3544
}
3645

46+
// disable integration tests, since there are none
47+
integrationTest.enabled = false
48+
49+
// disable api tests, since there are none
50+
apiTest.enabled = false
51+
3752
assemble.dependsOn shadowJar
3853
jar.enabled = false
3954

@@ -50,7 +65,8 @@ application {
5065
}
5166

5267
shadowJar {
53-
archiveName = "explorviz-${project.name}.${extension}"
68+
baseName = "explorviz-${project.name}"
69+
classifier = null
5470
}
5571

5672
spotbugs {
@@ -79,10 +95,6 @@ task spotbugs {
7995
dependsOn 'spotbugsTest'
8096
}
8197

82-
artifacts {
83-
archives shadowJar
84-
}
85-
8698
// START environment task
8799
task updateEnvPropsInBuildDir {
88100

@@ -113,4 +125,4 @@ task updateEnvPropsInBuildDir {
113125

114126
run.dependsOn updateEnvPropsInBuildDir
115127
updateEnvPropsInBuildDir.shouldRunAfter classes
116-
// END environment task
128+
// END environment task

0 commit comments

Comments
 (0)