Apply project version to POM
This commit is contained in:
22
build.gradle
22
build.gradle
@@ -1,3 +1,5 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath 'io.spring.gradle:spring-build-conventions:0.0.3.RELEASE'
|
||||
@@ -20,7 +22,7 @@ group = 'org.springframework.session'
|
||||
configurations.archives.artifacts.clear()
|
||||
|
||||
def txt = file('spring-session-bom.txt')
|
||||
def pom = file('pom.xml')
|
||||
def pom = file("$buildDir/poms/pom.xml")
|
||||
|
||||
artifacts {
|
||||
archives txt
|
||||
@@ -29,4 +31,22 @@ artifacts {
|
||||
}
|
||||
}
|
||||
|
||||
task generatePom() {
|
||||
def srcDir = 'src'
|
||||
def pomsDir = "$buildDir/poms"
|
||||
|
||||
inputs.files fileTree(srcDir)
|
||||
outputs.dir pomsDir
|
||||
|
||||
doLast {
|
||||
copy {
|
||||
from srcDir
|
||||
into pomsDir
|
||||
filter(ReplaceTokens, tokens: [version: project.version])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
install.dependsOn generatePom
|
||||
|
||||
sonarqube.skipProject = true
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
<artifactId>spring-session-bom</artifactId>
|
||||
<version>Aa-BUILD-SNAPSHOT</version>
|
||||
<version>@version@</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Spring Session Maven Bill of Materials (BOM)</name>
|
||||
@@ -65,18 +65,18 @@
|
||||
<artifactId>spring-session-data-geode</artifactId>
|
||||
<version>${spring-session-data-geode.version}</version>
|
||||
</dependency>
|
||||
<!-- Spring Session Data Redis -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
<artifactId>spring-session-data-redis</artifactId>
|
||||
<version>${spring-session.version}</version>
|
||||
</dependency>
|
||||
<!-- Spring Session Data MongoDB -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
<artifactId>spring-session-data-mongodb</artifactId>
|
||||
<version>${spring-session-data-mongodb.version}</version>
|
||||
</dependency>
|
||||
<!-- Spring Session Data Redis -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
<artifactId>spring-session-data-redis</artifactId>
|
||||
<version>${spring-session.version}</version>
|
||||
</dependency>
|
||||
<!-- Spring Session Hazelcast -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
Reference in New Issue
Block a user