Skip to content

Commit

Permalink
Development: Update server dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
krusche committed Nov 18, 2024
1 parent e44b66d commit b723b08
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 16 deletions.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:8.9.0-jdk21 AS build
FROM gradle:8.11.0-jdk21 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build -x test --no-daemon
Expand Down
47 changes: 33 additions & 14 deletions server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@

plugins {
id "java"
id "idea"
id "com.gorylenko.gradle-git-properties" version "2.4.2"
id "com.github.andygoossens.modernizer" version "1.10.0"
id "org.springframework.boot" version "3.3.5"
id "io.spring.dependency-management" version "1.1.6"
id "com.github.ben-manes.versions" version "0.51.0"
}

group = "thesis-track.ls1"
version = "3.0.0"
description = "Thesis Track"

java {
sourceCompatibility = "21"
targetCompatibility = "21"
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

repositories {
Expand All @@ -27,26 +33,28 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"

implementation "org.liquibase:liquibase-core"
implementation "org.liquibase:liquibase-core:4.30.0"
implementation "org.postgresql:postgresql"

implementation "commons-io:commons-io:2.17.0"
implementation "com.github.vladimir-bukhtoyarov:bucket4j-core:8.0.1"
implementation "org.mnode.ical4j:ical4j:4.0.4"
implementation "org.mnode.ical4j:ical4j:4.0.5"
implementation "com.itextpdf:itext-core:8.0.5"
implementation "com.itextpdf:html2pdf:5.0.5"
implementation "com.auth0:java-jwt:4.4.0"

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.mockito:mockito-junit-jupiter'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'

testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
compileOnly "org.projectlombok:lombok"
annotationProcessor "org.projectlombok:lombok"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
testImplementation 'org.testcontainers:junit-jupiter:1.20.3'
testImplementation 'org.testcontainers:postgresql:1.20.3'

// TODO: for some reason an update of org.junit.jupiter:junit-jupiter-engine to 5.11.x breaks the tests
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.5'
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.11.3"
compileOnly "org.projectlombok:lombok:1.18.36"
annotationProcessor "org.projectlombok:lombok:1.18.36"
}

test {
Expand All @@ -58,6 +66,17 @@ test {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
}

testLogging.showStandardStreams = true
systemProperty 'spring.profiles.active', 'test'
}

tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:deprecation"
}

// Available commands:
//
// Find dependency updates: ./gradlew dependencyUpdates -Drevision=release
// Test: ./gradlew test
// Build: ./gradlew build -x test
// Run: ./gradlew bootRun
2 changes: 1 addition & 1 deletion server/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit b723b08

Please sign in to comment.