Skip to content

Commit c4f670c

Browse files
committed
Minor improvements
1 parent ab7ad0d commit c4f670c

File tree

5 files changed

+54
-40
lines changed

5 files changed

+54
-40
lines changed

.github/workflows/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

build.gradle

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ ext {
3333
}
3434

3535
dependencies {
36-
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.2.0.202206071550-r'
37-
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.6.7'
38-
implementation 'org.springframework.boot:spring-boot-starter-security:2.6.7'
39-
implementation 'org.springframework.boot:spring-boot-starter-validation:2.6.7'
40-
implementation 'org.springframework.boot:spring-boot-starter-web:2.6.7'
41-
implementation 'org.springframework.boot:spring-boot-starter-actuator:2.6.7'
42-
implementation 'org.springdoc:springdoc-openapi-ui:1.6.7'
43-
implementation 'org.springdoc:springdoc-openapi-data-rest:1.6.7'
44-
implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.6.7'
36+
implementation 'org.eclipse.jgit:org.eclipse.jgit:6.3.0.202209071007-r'
37+
implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.7.3'
38+
implementation 'org.springframework.boot:spring-boot-starter-security:2.7.3'
39+
implementation 'org.springframework.boot:spring-boot-starter-validation:2.7.3'
40+
implementation 'org.springframework.boot:spring-boot-starter-web:2.7.3'
41+
implementation 'org.springframework.boot:spring-boot-starter-actuator:2.7.3'
42+
implementation 'org.springdoc:springdoc-openapi-ui:1.6.11'
43+
implementation 'org.springdoc:springdoc-openapi-data-rest:1.6.11'
44+
implementation 'org.springdoc:springdoc-openapi-webmvc-core:1.6.11'
4545
implementation 'org.javers:javers-spring-boot-starter-sql:6.6.5'
4646
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
4747
implementation 'org.apache.commons:commons-collections4:4.4'
@@ -50,28 +50,28 @@ dependencies {
5050
implementation 'com.google.guava:guava:31.1-jre'
5151
implementation 'commons-io:commons-io:2.11.0'
5252
implementation 'javax.validation:validation-api:2.0.1.Final'
53-
implementation 'edu.kit.datamanager:service-base:1.0.1'
53+
implementation 'edu.kit.datamanager:service-base:1.0.4'
5454

55-
testImplementation(platform('org.junit:junit-bom:5.8.2'))
56-
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
57-
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport:5.8.2'
58-
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.6.7'
55+
testImplementation(platform('org.junit:junit-bom:5.9.0'))
56+
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
57+
testImplementation 'org.junit.jupiter:junit-jupiter-migrationsupport:5.9.0'
58+
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.7.3'
5959
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc:2.0.6.RELEASE'
60-
testImplementation 'org.springframework.security:spring-security-test:5.6.3'
61-
testImplementation 'org.springframework:spring-test:5.3.19'
62-
testImplementation 'org.mockito:mockito-core:4.5.1'
60+
testImplementation 'org.springframework.security:spring-security-test:5.7.3'
61+
testImplementation 'org.springframework:spring-test:5.3.22'
62+
testImplementation 'org.mockito:mockito-core:4.8.0'
6363
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
6464
testImplementation 'org.powermock:powermock-api-mockito2:2.0.9'
65-
testImplementation 'net.bytebuddy:byte-buddy:1.12.9'
66-
testImplementation 'org.junit.vintage:junit-vintage-engine:5.8.2'
65+
testImplementation 'net.bytebuddy:byte-buddy:1.12.16'
66+
testImplementation 'org.junit.vintage:junit-vintage-engine:5.9.0'
6767

68-
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor:2.6.7'
68+
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor:2.7.3'
6969
annotationProcessor 'org.projectlombok:lombok:1.18.24'
7070

7171
compileOnly 'org.projectlombok:lombok:1.18.24'
7272

73-
runtimeOnly 'com.h2database:h2:2.1.212'
74-
runtimeOnly 'org.postgresql:postgresql:42.3.4'
73+
runtimeOnly 'com.h2database:h2:2.1.214'
74+
runtimeOnly 'org.postgresql:postgresql:42.5.0'
7575
runtimeOnly 'org.apache.httpcomponents:httpclient:4.5.13'
7676

7777
asciidoctorExt 'org.springframework.restdocs:spring-restdocs-asciidoctor:2.0.6.RELEASE'

src/main/java/edu/kit/datamanager/mappingservice/MappingServiceApplication.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
@Configuration
3030
public class MappingServiceApplication {
3131

32+
private static final Logger LOG = LoggerFactory.getLogger(MappingServiceApplication.class);
33+
3234
@Bean
3335
@Scope("prototype")
3436
public Logger logger(InjectionPoint injectionPoint) {
@@ -53,9 +55,10 @@ public ApplicationProperties applicationProperties() {
5355

5456
public static void main(String[] args) {
5557
SpringApplication.run(MappingServiceApplication.class, args);
56-
System.out.println("Mapping service is running! Access it at http://localhost:8095");
5758

58-
PluginManager.soleInstance().getListOfAvailableValidators().forEach(System.out::println);
59+
PluginManager.soleInstance().getListOfAvailableValidators().forEach((value) -> LOG.info("Found validator: " + value));
5960
PythonRunnerUtil.printPythonVersion();
61+
62+
System.out.println("Mapping service is running! Access it at http://localhost:8095");
6063
}
6164
}

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repo.auth.jwtSecret:test123
4040

4141
# Absolute path to the local python interpreter
4242
#mapping-service.pythonLocation:file:///usr/bin/python3
43-
mapping-service.pythonLocation=file:///opt/homebrew/bin/python3
43+
mapping-service.pythonLocation=file:///usr/local/bin/python3
4444

4545
# Absolute path to the local gemma mappings folder
4646
#mapping-service.mappingsLocation:file://tmp/mappings
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"$id": "http://example.com/product.schema.json",
4-
"title": "Simple Mapping",
5-
"description": "Data resource mapping from json",
6-
"type": "object",
7-
"properties":{
8-
"Publisher":{
9-
"path": "publisher",
10-
"type": "string"
11-
},
12-
"Publication Date":{
13-
"path": "publicationDate",
14-
"type": "string"
15-
}
16-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$id": "http://example.com/product.schema.json",
4+
"title": "Simple Mapping",
5+
"description": "Data resource mapping from json",
6+
"type": "object",
7+
"properties":{
8+
"Author":{
9+
"path": "publisher",
10+
"type": "string"
11+
},
12+
"Release Date":{
13+
"path": "publicationDate",
14+
"type": "string"
15+
}
16+
}
1717
}

0 commit comments

Comments
 (0)