Skip to content

Commit

Permalink
chore: Separate out okapiInterfaceVersion from module version
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanFreestone committed Oct 30, 2024
1 parent 3d42c15 commit 8d9370c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Automated integration test runners
* Fix and automatically validate module descriptor (Eureka)
* Tweaked how code reads from grailsApplication (getProperty(\*) instead of config.\*)
* Separate out interface and version number

## 7.0.9 2024-10-18
* Fixed problem with concurrentJobsGlobal not actually reading from environment variable
Expand Down
3 changes: 3 additions & 0 deletions service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,9 @@ project.gradle.projectsEvaluated {
// Get a System property
properties.setProperty('build.java.version', System.getProperty('java.version'))

properties.setProperty('okapiInterfaceVersion', "$okapiInterfaceVersion")


// Write the properties back to the file
grailsBuildInfoFile.withOutputStream {
properties.store(it,null)
Expand Down
1 change: 1 addition & 0 deletions service/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ gormVersion=8.0.3
# Application
appName=mod-agreements
appVersion=7.1.0
okapiInterfaceVersion=7.1
dockerTagSuffix=
dockerRepo=folioci

Expand Down
2 changes: 1 addition & 1 deletion service/src/main/okapi/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"provides": [
{
"id": "erm",
"version": "${info.app.minorVersion}",
"version": "${okapiInterfaceVersion}",
"handlers": [
{
"methods": [
Expand Down

0 comments on commit 8d9370c

Please sign in to comment.