Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Commit 2fae5c3

Browse files
committed
Merge branch 'dev'
* dev: Rename hotfix to patch, part 2 Rename hotfix to patch OLMIS-60 Add version number to login page Fix database build dependency bumping commons-collections to 3.2.2 and 4.1 due to security notification
2 parents 81b2e79 + f8f88db commit 2fae5c3

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ apply plugin: 'com.github.ben-manes.versions'
1515
apply plugin: 'properties'
1616
apply plugin: 'sonar-runner'
1717

18+
ext.versionProps = new Properties()
19+
versionProps.load(new FileInputStream("version.properties"))
20+
versionProps.each { versionProp ->
21+
ext.set(versionProp.key, versionProp.value)
22+
}
1823

1924
idea.project.languageLevel = '1.7'
2025
idea.project.jdkName = '1.7'
@@ -95,8 +100,8 @@ subprojects {
95100
'org.springframework.integration:spring-integration-ftp:4.1.2.RELEASE',
96101

97102
'xml-apis:xml-apis:2.0.2',
98-
'commons-collections:commons-collections:3.2.1',
99-
'org.apache.commons:commons-collections4:4.0',
103+
'commons-collections:commons-collections:3.2.2',
104+
'org.apache.commons:commons-collections4:4.1',
100105
'javax.servlet:javax.servlet-api:3.1.0',
101106

102107
'org.projectlombok:lombok:1.16.2',

modules/db/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ task globalSeed(dependsOn: [baseSeed, extraSeed]) {
138138
description 'Runs all seed tasks that apply globally'
139139
}
140140

141-
task enableCustom(type: Exec, dependsOn: globalSeed) {
141+
task enableCustom(type: Exec, dependsOn: baseSeed) {
142142
onlyIf { toggleOnCustom == 'true' }
143143
description 'Runs script to enable project-specific features (if toggleOnCustom is true)'
144144
environment("PGPASSWORD", dbPassword)

modules/openlmis-web/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ tasks.withType(War) {
141141
else
142142
"$line"
143143
}
144+
if (fileCopy.name.equals('login-form.html')) {
145+
fileCopy.filter(ReplaceTokens, tokens: [major_version: majorVersion,
146+
minor_version: minorVersion,
147+
patch_version: patchVersion,
148+
build_version: buildVersion])
149+
}
144150
}
145151
}
146152

modules/openlmis-web/src/main/webapp/public/pages/login-form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2 id="signInLabel" openlmis-message="label.sign.in"></h2>
4141
</form>
4242
</div>
4343
<div class="powered-by">
44-
Powered by <a href="http://openlmis.org" target="_blank">OpenLMIS</a>
44+
Powered by <a href="http://openlmis.org" target="_blank">OpenLMIS</a> v@major_version@.@minor_version@.@patch_version@ build @build_version@
4545
</div>
4646
</div>
4747

modules/sms/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies {
1717
compile 'javax.activation:activation:1.1.1',
1818
'org.springframework.integration:spring-integration-core:4.1.2.RELEASE',
1919
'org.springframework.integration:spring-integration-jdbc:4.1.2.RELEASE',
20-
'commons-collections:commons-collections:3.2.1',
20+
'commons-collections:commons-collections:3.2.2',
2121
'commons-lang:commons-lang:2.6',
2222
project(':modules:db')
2323

version.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
majorVersion = 2
2+
minorVersion = 0
3+
patchVersion = 1
4+
buildVersion = Developer

0 commit comments

Comments
 (0)