From 053347a78794a5c5d2bb2ed84a1500ae37de3cf6 Mon Sep 17 00:00:00 2001 From: Marcus Hert Da Coregio Date: Wed, 3 Jan 2024 13:46:35 -0300 Subject: [PATCH] Add Spring Security Release Plugin Issue gh-2712 --- build.gradle | 11 +++++++ buildSrc/build.gradle | 4 ++- gradle/libs.versions.toml | 1 + scripts/release/release-notes-sections.yml | 34 +++++++++++++--------- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index 9e3c1a5d..078e4c9c 100644 --- a/build.gradle +++ b/build.gradle @@ -25,6 +25,7 @@ buildscript { } apply plugin: 'io.spring.convention.root' +apply plugin: 'io.spring.security.release' group = 'org.springframework.session' description = 'Spring Session' @@ -46,3 +47,13 @@ nohttp { source.exclude "spring-session-docs/.gradle/nodejs/**" source.exclude "spring-session-docs/modules/ROOT/examples/**/build/**" } + +springRelease { + repositoryOwner = "spring-projects" + repositoryName = "spring-session" + weekOfMonth = 3 + dayOfWeek = 2 + referenceDocUrl = "https://docs.spring.io/spring-session/reference/{version}/index.html" + apiDocUrl = "https://docs.spring.io/spring-session/docs/{version}/api/" + replaceSnapshotVersionInReferenceDocUrl = true +} diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 946454cb..21b17f9c 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -4,13 +4,14 @@ plugins { id "groovy" } -sourceCompatibility = JavaVersion.VERSION_11 +sourceCompatibility = JavaVersion.VERSION_17 repositories { jcenter() gradlePluginPortal() mavenCentral() maven { url 'https://repo.spring.io/plugins-release/' } + maven { url 'https://repo.spring.io/snapshot' } } sourceSets { @@ -74,6 +75,7 @@ dependencies { implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.4' implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1' implementation libs.com.squareup.okhttp3.okhttp + implementation libs.io.spring.security.release.plugin testImplementation platform('org.junit:junit-bom:5.8.2') testImplementation "org.junit.jupiter:junit-jupiter-api" diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 88e1b970..2cfeb2c2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -74,5 +74,6 @@ org-webjars-knockout = "org.webjars:knockout:3.5.1" org-webjars-sockjs-client = "org.webjars:sockjs-client:1.5.1" org-webjars-stomp-websocket = "org.webjars:stomp-websocket:2.3.4" org-webjars-webjars-locator-core = "org.webjars:webjars-locator-core:0.52" +io-spring-security-release-plugin = "io.spring.gradle:spring-security-release-plugin:1.0.1-SNAPSHOT" [plugins] diff --git a/scripts/release/release-notes-sections.yml b/scripts/release/release-notes-sections.yml index 2df63b02..3d332f36 100644 --- a/scripts/release/release-notes-sections.yml +++ b/scripts/release/release-notes-sections.yml @@ -1,17 +1,25 @@ changelog: + repository: spring-projects/spring-session issues: exclude: - labels: ["duplicate", "invalid", "declined"] + labels: ["status: duplicate", "status: invalid", "status: declined"] + ports: + - label: "status: forward-port" + bodyExpression: 'Forward port of issue #(\d+).*' sections: - - title: "New Features" - emoji: ":star:" - labels: ["enhancement"] - - title: "Bug Fixes" - emoji: ":beetle:" - labels: ["bug", "regression"] - - title: "Dependency Upgrades" - emoji: ":hammer:" - labels: ["dependency-upgrade"] - - title: "Non-passive" - emoji: ":rewind:" - labels: ["breaks-passivity"] + - title: ":star: New Features" + labels: [ "type: enhancement" ] + sort: "title" + - title: ":beetle: Bug Fixes" + labels: [ "type: bug", "type: regression" ] + sort: "title" + - title: ":hammer: Dependency Upgrades" + labels: [ "type: dependency-upgrade" ] + sort: "title" + - title: ":rewind: Non-passive" + labels: [ "type: breaks-passivity" ] + sort: "title" + contributors: + title: ":heart: Contributors" + exclude: + names: ["marcusdacoregio", "dependabot[bot]"]