Skip to content
Open
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
22 changes: 22 additions & 0 deletions .github/workflows/pic-sure-auth-microapp-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: pic-sure-auth-microapp tests
on:
pull_request:
paths: ['services/pic-sure-auth-microapp/**']
push:
branches: [main]
paths: ['services/pic-sure-auth-microapp/**']
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: Set up JDK 25
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Test with Maven
run: mvn -B -pl services/pic-sure-auth-microapp/pic-sure-auth-services -am verify
env:
GITHUB_TOKEN: ${{ github.token }}
7 changes: 7 additions & 0 deletions platform/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@
<artifactId>logstash-logback-encoder</artifactId>
<version>${logstash-logback-encoder.version}</version>
</dependency>
<!-- Convergence pin: the auth0 SDK pulls okio 3.5.0 directly but 3.6.0 via its
own OkHttp transitive (dependencyConvergence enforcement, spec §17.4). -->
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>3.6.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<distributionManagement>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<module>services/picsure-dictionary/aggregate</module>
<module>services/picsure-dictionary/dictionaryweights</module>
<module>services/pic-sure-logging</module>
<module>services/pic-sure-auth-microapp</module>
<!-- pic-sure-legacy is deliberately NOT aggregated: it is quarantined
(Java 11/javax, own parent pom) and builds independently. -->
</modules>
Expand Down
2 changes: 1 addition & 1 deletion services/pic-sure-auth-microapp/.sdkmanrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
java=24.0.2-tem
java=25.0.3-tem
4 changes: 2 additions & 2 deletions services/pic-sure-auth-microapp/Jenkinsfile.fence
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pipeline {
sh '''docker run --rm \
-v "/var/jenkins_home/workspace/${JOB_NAME}/:/app:z" \
-v maven_m2_cache:/root/.m2 \
-w /app \
-w /app/services/pic-sure-auth-microapp \
--platform=linux/amd64 \
maven:3.9-amazoncorretto-25 \
sh -lc "mvn clean install -DskipTests"'''
Expand All @@ -40,7 +40,7 @@ pipeline {
" --build-arg DATASOURCE_USERNAME=${env.DATASOURCE_USERNAME} " +
" --build-arg STACK_SPECIFIC_APPLICATION_ID=${env.STACK_SPECIFIC_APPLICATION_ID} "

sh "docker build --load ${DOCKER_BUILD_ARGS} ${buildArgs} -t ${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}:${IMAGE_TAG} ."
sh "docker build --load ${DOCKER_BUILD_ARGS} ${buildArgs} -t ${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}:${IMAGE_TAG} services/pic-sure-auth-microapp"
sh "docker tag ${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}:${IMAGE_TAG} ${params.DOCKER_REGISTRY}/${params.REPOSITORY_NAME}:${LATEST_TAG}"
}
}
Expand Down
6 changes: 3 additions & 3 deletions services/pic-sure-auth-microapp/jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ pipeline {
docker run --rm \
-v "$DOCKER_CONFIG_DIR/jenkins_home/workspace/$JOB_NAME/:/app" \
-v maven_m2_cache:/root/.m2 \
-w /app \
-w /app/services/pic-sure-auth-microapp \
maven:3.9-amazoncorretto-25 \
sh -lc "mvn clean install -B -T 1C -DskipTests"

ls -lah pic-sure-auth-services/target || true
ls -lah services/pic-sure-auth-microapp/pic-sure-auth-services/target || true
'''
}
}
Expand All @@ -54,7 +54,7 @@ pipeline {
steps {
sh '''
set -euo pipefail
docker build ${DOCKER_BUILD_ARGS} -t "${IMAGE_NAME}:${IMAGE_TAG}" .
docker build ${DOCKER_BUILD_ARGS} -t "${IMAGE_NAME}:${IMAGE_TAG}" services/pic-sure-auth-microapp
docker tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:${LATEST_TAG}"
'''
}
Expand Down
104 changes: 5 additions & 99 deletions services/pic-sure-auth-microapp/pic-sure-auth-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,36 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.9</version>
<relativePath/> <!-- lookup parent from repository -->
<groupId>edu.harvard.hms.dbmi.avillach</groupId>
<artifactId>pic-sure-api</artifactId>
<version>${revision}</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<groupId>edu.harvard.hms.dbmi.avillach</groupId>
<artifactId>pic-sure-auth-services</artifactId>
<version>2.0-SNAPSHOT</version>
<name>pic-sure-auth-services</name>
<packaging>jar</packaging>
<url/>
<licenses>
<license/>
</licenses>
<developers>
<developer/>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
</scm>
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/hms-dbmi/pic-sure</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<properties>
<java.version>25</java.version>
<spotless.version>2.41.1</spotless.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>3.5.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>3.2.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>3.2.4</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
Expand All @@ -89,82 +55,62 @@
<artifactId>compiler</artifactId>
<version>0.9.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>2.0.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/jakarta.mail/jakarta.mail-api -->
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>2.1.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-jaxrs2 -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-jakarta</artifactId>
<version>2.2.21</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-jaxrs2-servlet-initializer-jakarta -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-servlet-initializer-jakarta</artifactId>
<version>2.2.21</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations-jakarta -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations-jakarta</artifactId>
<version>2.2.21</version>
</dependency>
<!-- https://mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>4.0.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.glassfish.jaxb/jaxb-runtime -->
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>4.0.5</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-core</artifactId>
<version>4.0.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.17.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.18.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.17.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy -->
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.14.13</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.mysql/mysql-connector-j -->
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.2.0</version>
</dependency>
<dependency>
<groupId>com.amazonaws.secretsmanager</groupId>
Expand All @@ -174,9 +120,7 @@
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.9.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api -->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
Expand All @@ -199,49 +143,32 @@
<artifactId>auth0</artifactId>
<version>2.10.1</version>
</dependency>
<!-- HTTP-client winner: RestClient over Apache HttpClient 5 (BOM-managed versions) -->
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.6.1</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>5.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.21.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-subclass</artifactId>
<version>5.21.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>edu.harvard.hms.dbmi.avillach.hpds</groupId>
<artifactId>pic-sure-hpds-model</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>edu.harvard.dbmi.avillach</groupId>
<artifactId>pic-sure-logging-client</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

Expand All @@ -251,27 +178,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.version}</version>
<configuration>
<java>
<eclipse>
<version>4.29</version>
<file>code-formatting/eclipse-formatter.xml</file>
</eclipse>
<toggleOffOn />
</java>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub HMS-DBMI Apache Maven Packages</name>
<url>https://maven.pkg.github.com/hms-dbmi/pic-sure</url>
</repository>
</distributionManagement>
</project>
Loading
Loading