Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: 2.1
orbs:
node: circleci/node@1.1.6
docker: circleci/docker@2.1.1
executors:
openjdk_executor:
docker:
- image: circleci/openjdk:11.0.8-jdk
environment:
_JAVA_OPTIONS: "-Xmx3g"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
openjdk_executor:
docker:
- image: cimg/openjdk:17.0.3
environment:
_JAVA_OPTIONS: "-Xmx3g"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
build_and_test:
executor:
name: node/default
name: docker/docker
working_directory: /home/circleci/mms
steps:
- checkout
Expand All @@ -23,7 +23,7 @@ jobs:
name: "Create and start all services from the docker-compose configuration"
command: |
cp example/src/main/resources/application.properties.example ./example/src/main/resources/application.properties
docker-compose up -d
docker-compose up --build -d
docker run --network container:mms curlimages/curl --retry 8 --retry-delay 10 --retry-max-time 90 --retry-connrefused http://mms:8080/healthcheck

- run:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:11-jdk-slim
FROM openjdk:17.0.2-slim as build
COPY . /mms
WORKDIR /mms
RUN ./gradlew --no-daemon bootJar
RUN ./gradlew --no-daemon bootJar --warning-mode all

RUN find . -type f -name example-*.jar -not -iname '*javadoc*' -not -iname '*sources*' -exec cp '{}' '/app.jar' ';'
ENV JDK_JAVA_OPTIONS "-XX:MaxRAMPercentage=90.0"
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Docker
We suggest using Docker to set up PostgreSQL and Elasticsearch. Installation
instructions are found here: `Docker documentation <https://docs.docker.com/>`_

Java SE Development Kit 11
Java SE Development Kit 17
^^^^^^^^^^^^^^^^^^^^^^^^^^

Installation instructions: `JDK-11 download <https://www.oracle.com/java/technologies/javase-jdk11-downloads.html>`_
Installation instructions: `JDK-17 download <https://www.oracle.com/java/technologies/javase-jdk17-downloads.html>`_

Postgresql
^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description = 'Model Management System Reference Implementation'
ext {
commonDependencies = [
'swagger-annotations' : 'io.swagger.core.v3:swagger-annotations:2.1.2',
'hibernate-core' : 'org.hibernate:hibernate-core:5.4.14.Final',
'hibernate-core' : 'org.hibernate:hibernate-core:5.6.0.Final',
'servlet-api' : 'javax.servlet:javax.servlet-api:4.0.1',
'slf4j-api' : 'org.slf4j:slf4j-api:1.7.30',
'spring-boot' : "org.springframework.boot:spring-boot:$springBootVersion",
Expand Down
3 changes: 3 additions & 0 deletions example/example.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@ configurations {
it.outgoing.artifact(bootJar)
}
}
bootJar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you remember which warning was triggered, or what was being duplicated?

Copy link
Collaborator Author

@HuiJun HuiJun May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entry BOOT-INF/lib/jna-5.5.0.jar is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.4.2/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.

}
ext['elasticsearch.version'] = "$elasticVersion"
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableTransactionManagement
@EnableAsync
public class ExampleSecurityConfig extends WebSecurityConfigurerAdapter implements
WebMvcConfigurer {
public class ExampleSecurityConfig extends WebSecurityConfigurerAdapter implements WebMvcConfigurer {

@Autowired
AuthSecurityConfig authSecurityConfig;
Expand Down
4 changes: 3 additions & 1 deletion example/src/main/resources/application-test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spring.datasource.username=mmsuser
spring.datasource.password=test1234
spring.datasource.driver-class-name=org.postgresql.Driver
#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.initialization-mode=always
spring.sql.init.mode=always

# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL10Dialect
Expand All @@ -44,6 +44,8 @@ spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.open-in-view=false

spring.main.allow-bean-definition-overriding=true
spring.main.allow-circular-references=true
spring.mvc.pathmatch.matching-strategy=ant_path_matcher

#Configuration for Elasticsearch
elasticsearch.host=elasticsearch
Expand Down
2 changes: 2 additions & 0 deletions example/src/main/resources/application.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.jpa.open-in-view=false

spring.main.allow-bean-definition-overriding=true
spring.main.allow-circular-references=true
spring.mvc.pathmatch.matching-strategy=ant_path_matcher

#Configuration for Elasticsearch
elasticsearch.host=localhost
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version=4.0.7
version=4.0.8
group=org.openmbee.mms

springBootVersion=2.2.6.RELEASE
springFrameworkVersion=5.2.5.RELEASE
springSecurityVersion=5.3.1.RELEASE
springDataVersion=2.2.6.RELEASE
jacksonVersion=2.10.3
elasticVersion=7.8.1
springBootVersion=2.6.7
springFrameworkVersion=5.3.20
springSecurityVersion=5.7.0
springDataVersion=2.7.0
jacksonVersion=2.13.3
elasticVersion=7.8.1
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists