Skip to content

Include the crossVersion in daffodil jars packaged in tar/zip/RPM#1147

Merged
stevedlawrence merged 1 commit intoapache:mainfrom
stevedlawrence:daffodil-2849-native-packager-jar-names
Jan 17, 2024
Merged

Include the crossVersion in daffodil jars packaged in tar/zip/RPM#1147
stevedlawrence merged 1 commit intoapache:mainfrom
stevedlawrence:daffodil-2849-native-packager-jar-names

Conversation

@stevedlawrence
Copy link
Member

The sbt-native-packager plugin does not include the crossVersion in the Daffodil jars that it packages in tar/zip/RPM/etc. This could be useful for more easily comparing jars from maven (which do include the crossVersion) or creating a local Ivy/maven repo.

The plugin does not have an configuration option to set this, so this directly modifies the mappings that the plugin creates to include the crossVersion for Daffodil jars only.

For example, a package mapping that was previously this:

lib/org.apache.daffodil.daffodil-lib-3.7.0.jar

is now changed to this:

lib/org.apache.daffodil.daffodil-lib_2.12-3.7.0.jar

DAFFODIL-2849

Copy link
Contributor

@mbeckerle mbeckerle left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@tuxji tuxji left a comment

Choose a reason for hiding this comment

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

+1

I wonder if we should file an issue with the sbt-native-packager maintainer to replace the default mapping with our own mapping? I don't think callers would mind slightly longer jar names as long as the jar names are now consistent with ivy and maven jars.


// When the sbt-native-packger plugin creates a tar/zip/RPM/etc, it does not include the
// crossVersion in mapping of jars built from this project (i.e. org.apache.daffodil jars only).
// There are cases where this crossVersion would be useful (e.g. consistenncy with Ivy jar names
Copy link
Contributor

Choose a reason for hiding this comment

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

*consistency

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix.

I wonder if we should file an issue with the sbt-native-packager maintainer

sbt-native-packager unfortunately seems pretty dead. PR's aren't getting merged and releases aren't being made (even though some tags have been created). I think whoever the maintainers are have lost interest/time.

The sbt-native-packager plugin does not include the crossVersion in the
Daffodil jars that it packages in tar/zip/RPM/etc. This could be useful
for more easily comparing jars from maven (which do include the
crossVersion) or creating a local Ivy/maven repo.

The plugin does not have an configuration option to set this, so this
directly modifies the mappings that the plugin creates to include the
crossVersion for Daffodil jars only.

For example, a package mapping that was previously this:

  lib/org.apache.daffodil.daffodil-lib-3.7.0.jar

is now changed to this:

  lib/org.apache.daffodil.daffodil-lib_2.12-3.7.0.jar

DAFFODIL-2849
@stevedlawrence stevedlawrence force-pushed the daffodil-2849-native-packager-jar-names branch from e0d468c to 87f8daa Compare January 17, 2024 17:57
@stevedlawrence stevedlawrence merged commit fd70059 into apache:main Jan 17, 2024
@stevedlawrence stevedlawrence deleted the daffodil-2849-native-packager-jar-names branch January 17, 2024 18:37
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.

3 participants