Skip to content

Commit

Permalink
Merge pull request #24644 from jhipster/skip_ci-spring-boot_3.2.1
Browse files Browse the repository at this point in the history
Update spring-boot version to 3.2.1
  • Loading branch information
DanielFran committed Dec 29, 2023
2 parents 872c49c + 2379ff7 commit 9a3edcc
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 9 deletions.
3 changes: 3 additions & 0 deletions generators/app/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ exports[`generator - app with default config should match snapshot 1`] = `
"r2dbc": {
"artifactId": "r2dbc-postgresql",
"groupId": "org.postgresql",
"version": "1.0.2.RELEASE",
},
},
"prodDatabaseExtraOptions": "",
Expand Down Expand Up @@ -1263,6 +1264,7 @@ exports[`generator - app with gateway should match snapshot 1`] = `
"r2dbc": {
"artifactId": "r2dbc-postgresql",
"groupId": "org.postgresql",
"version": "1.0.2.RELEASE",
},
},
"prodDatabaseExtraOptions": "",
Expand Down Expand Up @@ -1778,6 +1780,7 @@ exports[`generator - app with microservice should match snapshot 1`] = `
"r2dbc": {
"artifactId": "r2dbc-postgresql",
"groupId": "org.postgresql",
"version": "1.0.2.RELEASE",
},
},
"prodDatabaseExtraOptions": "",
Expand Down
2 changes: 1 addition & 1 deletion generators/gatling/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type GatlingGenerator from './generator.js';
* need to be removed.
*/
export default function cleanupTask(this: GatlingGenerator, { application }) {
if (this.isJhipsterVersionLessThan('8.1.0')) {
if (this.isJhipsterVersionLessThan('8.1.1')) {
if (application.buildToolGradle) {
this.removeFile('gradle/gatling.gradle');
}
Expand Down
4 changes: 2 additions & 2 deletions generators/generator-constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export const javaDependencies = {
/**
* spring-boot version should match the one managed by https://mvnrepository.com/artifact/tech.jhipster/jhipster-dependencies/JHIPSTER_DEPENDENCIES_VERSION
*/
'spring-boot': '3.2.0',
'spring-boot': '3.2.1',
/*
* hibernate version should match the one managed by https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/SPRING_BOOT_VERSION
* Required due to hibernate-jpamodelgen annotation processor.
*/
hibernate: '6.3.1.Final',
hibernate: '6.4.1.Final',
/*
* cassandra driver version should match the one managed by https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/SPRING_BOOT_VERSION
* Required due to java-driver-mapper-processor annotation processor.
Expand Down
6 changes: 6 additions & 0 deletions generators/server/templates/gradle/profile_dev.gradle.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ configurations {
<%_ if (enableHibernateCache && (cacheProviderEhcache || cacheProviderCaffeine || cacheProviderRedis)) { _%>
// TODO drop forced version. Refer to https://github.com/jhipster/generator-jhipster/issues/22579
force "org.hibernate.orm:hibernate-jcache:${hibernateVersion}"
<%_ } _%>
<%_ if (prodDatabaseDriver?.r2dbc?.version) { _%>
force "<%- prodDatabaseDriver.r2dbc.groupId %>:<%- prodDatabaseDriver.r2dbc.artifactId %>:<%- prodDatabaseDriver.r2dbc.version %>"
<%_ } _%>
<%_ if (prodDatabaseDriver?.jdbc?.version) { _%>
force "<%- prodDatabaseDriver.jdbc.groupId %>:<%- prodDatabaseDriver.jdbc.artifactId %>:<%- prodDatabaseDriver.jdbc.version %>"
<%_ } _%>
}
}
Expand Down
6 changes: 6 additions & 0 deletions generators/server/templates/gradle/profile_prod.gradle.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ configurations {
<%_ if (enableHibernateCache && (cacheProviderEhcache || cacheProviderCaffeine || cacheProviderRedis)) { _%>
// TODO drop forced version. Refer to https://github.com/jhipster/generator-jhipster/issues/22579
force "org.hibernate.orm:hibernate-jcache:${hibernateVersion}"
<%_ } _%>
<%_ if (prodDatabaseDriver?.r2dbc?.version) { _%>
force "<%- prodDatabaseDriver.r2dbc.groupId %>:<%- prodDatabaseDriver.r2dbc.artifactId %>:<%- prodDatabaseDriver.r2dbc.version %>"
<%_ } _%>
<%_ if (prodDatabaseDriver?.jdbc?.version) { _%>
force "<%- prodDatabaseDriver.jdbc.groupId %>:<%- prodDatabaseDriver.jdbc.artifactId %>:<%- prodDatabaseDriver.jdbc.version %>"
<%_ } _%>
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ public class SecurityJwtConfiguration {
metersService.trackTokenInvalidSignature();
} else if (e.getMessage().contains("Jwt expired at")) {
metersService.trackTokenExpired();
} else if (e.getMessage().contains("Invalid JWT serialization")) {
metersService.trackTokenMalformed();
} else if (e.getMessage().contains("Invalid unsecured/JWS/JWE")) {
} else if (
e.getMessage().contains("Invalid JWT serialization") ||
e.getMessage().contains("Malformed token") ||
e.getMessage().contains("Invalid unsecured/JWS/JWE")
) {
metersService.trackTokenMalformed();
}
throw e;
Expand Down
2 changes: 1 addition & 1 deletion generators/spring-cloud-stream/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function cleanupKafkaFilesTask(this: KafkaGenerator, { applicatio
this.removeFile(`${application.srcTestResources}META-INF/spring.factories`);
this.removeFile(`${application.javaPackageTestDir}config/TestContainersSpringContextCustomizerFactory.java`);
}
if (this.isJhipsterVersionLessThan('8.1.0')) {
if (this.isJhipsterVersionLessThan('8.1.1')) {
if (application.messageBrokerPulsar) {
this.removeFile('gradle/pulsar.gradle');
}
Expand Down
5 changes: 3 additions & 2 deletions generators/spring-data-relational/internal/dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const testcontainerFileForDB = {
postgresql: 'PostgreSqlTestContainer.java',
};

type JavaArtifact = { groupId: string; artifactId: string };
type JavaArtifact = { groupId: string; artifactId: string; version?: string };
export type DatabaseArtifact = { jdbc: JavaArtifact; r2dbc: JavaArtifact };

const databaseArtifactForDB: Record<string, DatabaseArtifact> = {
Expand All @@ -51,7 +51,8 @@ const databaseArtifactForDB: Record<string, DatabaseArtifact> = {
},
postgresql: {
jdbc: { groupId: 'org.postgresql', artifactId: 'postgresql' },
r2dbc: { groupId: 'org.postgresql', artifactId: 'r2dbc-postgresql' },
// TODO ignore v1.0.3.RELEASE due to https://github.com/pgjdbc/r2dbc-postgresql/issues/622, revisit for spring-boot 3.2.2
r2dbc: { groupId: 'org.postgresql', artifactId: 'r2dbc-postgresql', version: '1.0.2.RELEASE' },
},
};

Expand Down

0 comments on commit 9a3edcc

Please sign in to comment.