-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump supported Java version and several libraries (#153)
* Bump spring-boot-starter-parent from 1.4.4 ->2.7.8 (with Spring 5.3.31 and Solr 8.5.2). * Bump Java 8 -> Java 17 * Keep Java 8 for klass-forvaltning * Fix incorrect sql syntax * Upgrade jaxb2-maven-plugin * Removed solr-dataimporthandler as it conflicted with ANTLR version (and is hopefully not used) * Fix boolean comparison operator in JPA queries * Fix issues with H2 and reserved keywords * Fix JPQL boolean comparison * Fixed antlr conflicts * Specify Converter for fields of type Translatable * Implement no-args constructor for entity classes * Fixed native sqls for the user table and fixed an improper test. * Bump rest-assured version * Tables should be nullable * Fix changes in Spring HATEOAS * Fix tests due to changes in Spring HATEOAS * Fix CodeQL Analysis * Share maven cache * Make all classes Java 1.8 compatible in order to build klass-forvaltning. * Since klass-forvaltning uses Vaadin7 we must remove dependency to klass-root and continue using Spring Boot 1.4.4. * Use spring-data-solr 2.1.0.RELEASE * Turn off hibernate ddl validation since it appears buggy * Add http examples * Solr Core name must be part of the baseURL for some reason * Fix search links to include the base path * Add separate profiles for nexus and github * Add github packages repo * Add auth to github packages repo * Fix monitoring and ping paths to be less strict. Also fix links where basePath was missing. * Fix ordering of json structure * Use application/hal+json by default * Keep suffix pattern matching which Spring has disabled by default * Bump apacheds-server-jndi-version and set CORS header for klass-web * Expand self links so that klass-web can use the links directly * Ensure that links inherit https when running behind a LB/reverse proxy * Enforce https in API docs --------- Co-authored-by: mmwinther <[email protected]>
- Loading branch information
1 parent
8f5e787
commit 0f5b413
Showing
166 changed files
with
2,129 additions
and
1,658 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,12 @@ jobs: | |
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 1.8 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '8' | ||
java-version: '17' | ||
cache: maven | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
|
@@ -68,8 +69,31 @@ jobs: | |
#- run: | | ||
# make bootstrap | ||
# make release | ||
# Build all modules except klass-forvaltning since it is not compatible with JDK 17 | ||
- name: Build with Maven | ||
run: mvn -B clean install --settings=.maven.settings.xml --file pom.xml | ||
run: mvn -B clean install --settings=.maven.settings.xml -pl '!:klass-forvaltning' | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '8' | ||
cache: maven | ||
|
||
# Need to downgrade Maven in order to allow HTTP (not HTTPS) packages to be downloaded. | ||
# This is necessary as HTTP repositories were blocked in Maven 3.8.1 | ||
# HTTP repositories are used in some outdated dependenciesns | ||
# This step can be removed once KLASS packages have been updated to more recent versions | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
maven-version: 3.6.3 | ||
|
||
# Build only klass-forvaltning with JDK 1.8 | ||
- name: Build, test and package with Maven | ||
run: mvn --batch-mode --update-snapshots package -Djava.version=1.8 -pl :klass-forvaltning -am -P github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# HTTP Client tests | ||
|
||
This folder contains files for Jetbrains' | ||
[HTTP Client plugin](https://www.jetbrains.com/help/idea/2023.1/http-client-in-product-code-editor.html). With these | ||
you can create, edit, and execute HTTP requests directly in the IntelliJ IDEA code editor. | ||
|
||
To be able to run these requests you should have an environment file called `http-client.env.json` | ||
inside this folder. The file should have | ||
the following structure: | ||
|
||
``` | ||
{ | ||
"local": { | ||
"base_url": "http://localhost:8080/api/klass/v1", | ||
"other": "..." | ||
}, | ||
"prod": { | ||
"base_url": "https://data.ssb.no/api/klass/v1", | ||
"other": "..." | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
### Get all classificationfamilies | ||
GET {{base_url}}/classificationfamilies | ||
Accept: application/json | ||
|
||
### Get single classificationfamily | ||
GET {{base_url}}/classificationfamilies/15 | ||
Accept: application/json | ||
|
||
### Get all classifications | ||
GET {{base_url}}/classifications | ||
Accept: application/json | ||
|
||
### Get a single classification | ||
GET {{base_url}}/classifications/1 | ||
Accept: application/json | ||
|
||
### Get classification codes | ||
GET {{base_url}}/classifications/1/codes?from=2020-01-01&to=2021-01-01&includeFuture=true | ||
Accept: application/json | ||
|
||
### Get classification codes | ||
GET {{base_url}}/classifications/1/codes?from=2020-01-01&includeFuture=true | ||
Accept: application/json | ||
|
||
### Get classification codes | ||
GET {{base_url}}/classifications/1/codesAt?date=2020-06-01 | ||
Accept: application/json | ||
|
||
### Get classification changes | ||
GET {{base_url}}/classifications/1/changes | ||
Accept: application/json | ||
|
||
### Search for classifications | ||
GET {{base_url}}/classifications/search?query=kommune | ||
Accept: application/json | ||
|
||
### Search for classifications within a ssb section | ||
GET {{base_url}}/classifications/search?query=kommune&includeCodelists=true&ssbSection=320 | ||
Accept: application/json | ||
|
||
### Get all classifications with size | ||
GET {{base_url}}/classifications?size=2 | ||
Accept: application/json | ||
|
||
### Get all classifications with size and page | ||
GET {{base_url}}/classifications?size=2&page=2 | ||
Accept: application/json | ||
|
||
### Get a single correspondencetable | ||
GET {{base_url}}/correspondencetables/1 | ||
Accept: application/json | ||
|
||
### Get a single correspondencetable with suffix pattern matching | ||
GET {{base_url}}/correspondencetables/1.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"local": { | ||
"base_url": "http://localhost:8080/api/klass/v1" | ||
}, | ||
"prod": { | ||
"base_url": "https://data.ssb.no/api/klass/v1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.