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

Better versions #21

Merged
merged 100 commits into from
May 7, 2022
Merged

Better versions #21

merged 100 commits into from
May 7, 2022

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Apr 16, 2022

This PR implements storing a version of a software component in JAR manifest files. This mechanism is going to replace the one used in ProtoData . We need to replace the currently used approach (which uses version.txt resource files) because it would break when we have more than one artifact with such a resource.

The loading is done by the KManifest class which wraps around standard Java Manifest and its Attributes.

Storing of necessary attributes is done by the script plugin write-manifest.gradle.kts which should be applied to each subproject which needs version information. This script plugin will be added to config after latest version of tool-base and the script plugin are applied to ProtoData.

This PR also partially addresses the issue #19, implementing the loading of dependency information from a custom Depends-On attribute. The storing (presumably done by another script plugin) would be implemented in a scope of another PR.

# Conflicts:
#	buildSrc/src/main/kotlin/io/spine/internal/dependency/Jackson.kt
#	buildSrc/src/main/kotlin/io/spine/internal/gradle/publish/Artifacts.kt
#	buildSrc/src/main/kotlin/io/spine/internal/gradle/publish/PublishingConfig.kt
#	buildSrc/src/main/kotlin/io/spine/internal/gradle/publish/SpinePublishing.kt
#	buildSrc/src/main/kotlin/io/spine/internal/gradle/publish/Tasks.kt
#	license-report.md
#	version.gradle.kts
pom.xml Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Apr 16, 2022

Codecov Report

Merging #21 (1416a6f) into master (a927739) will increase coverage by 0.97%.
The diff coverage is 74.60%.

@@             Coverage Diff              @@
##             master      #21      +/-   ##
============================================
+ Coverage     55.45%   56.42%   +0.97%     
- Complexity      449      468      +19     
============================================
  Files           132      137       +5     
  Lines          2382     2504     +122     
  Branches        145      158      +13     
============================================
+ Hits           1321     1413      +92     
- Misses         1015     1037      +22     
- Partials         46       54       +8     

pom.xml Show resolved Hide resolved
pom.xml Show resolved Hide resolved
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review May 6, 2022 16:10
@alexander-yevsyukov alexander-yevsyukov requested a review from a team May 6, 2022 18:41
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

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

LGTM with a couple of typos to fix.

buildSrc/src/main/kotlin/write-manifest.gradle.kts Outdated Show resolved Hide resolved
buildSrc/src/main/kotlin/write-manifest.gradle.kts Outdated Show resolved Hide resolved
buildSrc/src/main/kotlin/write-manifest.gradle.kts Outdated Show resolved Hide resolved
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.

2 participants