Skip to content

Commit

Permalink
Version info moved to build.gradle; version 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Jan 11, 2021
1 parent 760078a commit 4dfc32e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
plugins {
id 'war'
}
description = 'Beam authorization app'
group 'org.jlab'
version '2.10.0'
ext.releaseDate = 'Jan 11 2021'
ext.resourceVersion = '31'

repositories {
jcenter()
maven {
Expand All @@ -17,5 +23,20 @@ dependencies {
'org.jlab:jlog:4.0.1'
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs += ["-Xlint:deprecation", "-Xlint:unchecked"]
}
war {
archiveName 'beam-auth.war'
filesMatching('WEB-INF/web.xml') {
filter {
String line -> line.replaceAll("@VERSION@", project.version)
}
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
filter {
String line -> line.replaceAll("@RESOURCE_VERSION@", resourceVersion)
}
}
}
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
</context-param>
<context-param>
<param-name>resourceVersionNumber</param-name>
<param-value>30</param-value>
<param-value>@RESOURCE_VERSION@</param-value>
</context-param>
<context-param>
<param-name>releaseNumber</param-name>
<param-value>2.9.1</param-value>
<param-value>@VERSION@</param-value>
</context-param>
<context-param>
<param-name>releaseDate</param-name>
<param-value>02 Mar 2020</param-value>
<param-value>@RELEASE_DATE@</param-value>
</context-param>
<context-param>
<param-name>contentContact</param-name>
Expand Down

0 comments on commit 4dfc32e

Please sign in to comment.