Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Version Handling in Build & Backend #1043

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

bruderol
Copy link
Member

Improves the version handling in several aspects:

  1. Works now when working with Spring Boot deployments - which seemed not to work before (could not load it from servlet context somehow)
  2. refactored the version stuff into own gradle file to have all version stuff in one place
  3. use resource processing of gradle to create version.properties file more elegantly
  4. use same mechanism to also display version information as part of spring application banner in server log
  5. use standard gradle version property in gradle files where appropriate (instead of deprecated version property or long scenarioo specific version property)

1. use resource processing of gradle to put version numbers into version properties file in resources
2. use same approach to also include the version numbers in spring application banner
3. apply idea plugin in gradle to ensure the same output dirs are used in intellij
4. extract the calculation of scenarioo version numbers into own version.gradle file
5. use standard gradle version property in gradle files where appropriate
…ess' of https://github.com/scenarioo/scenarioo into feature/cleanup_gradle_config_version_mess

� Conflicts:
�	scenarioo-server/build.gradle

ext.versionWithGitCommit = getVersionName();
apply plugin: 'idea'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this?

'aggregatedDataFormatVersion=' + aggregatedDataFormatVersion + '\n' +
'documentationVersion=' + documentationVersion + '\n')
/**
* Replace properties in important resource files
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think java doc style should only be used on methods. I would use a /* single comment */ style here.

@@ -160,7 +152,7 @@ publishing {

groupId 'org.scenarioo'
artifactId 'scenarioo-viewer'
version versionWithGitCommit
version scenariooViewerVersion
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the same as archiveVersion, correct?

public class ApplicationVersionHolderTest {

@Test
public void initializeFromClassContext_loadsVersionProperlyFromVersionPropertiesFile() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JUnit 5 does not require the public keyword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants