Skip to content

maven to maven-publish #635

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

Merged
merged 12 commits into from
Apr 25, 2021
Merged

maven to maven-publish #635

merged 12 commits into from
Apr 25, 2021

Conversation

rupeshkumar22
Copy link
Contributor

@rupeshkumar22 rupeshkumar22 commented Jan 5, 2021

Fixes #623
Maven plugin is completely removed and replaced by the new maven-publish plugin. Creates pom files in respected dist folders. The pom files are copied from build/publications/pub-name/pom-default.xml to the dist directory.
Usage

  • Creation of pom-default.xml files at locations:
    root/core/build/publications/corePublication/pom-default.xml
    root/mode/libraries/ar/build/publications/arPublication/pom-default.xml
    root/mode/libraries/vr/build/publications/vrPublication/pom-default.xml

  • Commands to generate these files are:
    gradle generatePomFileForcorePublicationPublication
    gradle generatePomFileForarPublicationPublication
    gradle generatePomFileForvrPublicationPublication

Before executing Gradle build, Either the above commands need to be executed one by one or combined as:

gradle generatePomFileForcorePublicationPublication generatePomFileForarPublicationPublication generatePomFileForvrPublicationPublication build

The error will be handled with the instructions in case if 'gradle build' is executed before the creation of pom files as follows:

erhandled

@codeanticode
Copy link
Contributor

@rupesh-kumar-lpu thanks a lot for this PR! I will review and merge into the next release of the mode.

@rupeshkumar22
Copy link
Contributor Author

@codeanticode thanks for your valuable response! Changes are there in three 'build.gradle' files (Core, AR, and VR). Some of the commits are changed again and again making the PR a bit unordered to review. You may review the code directly from the forked maven-publish branch, related to this PR. If there is a need I can create a separate squash and merge PR. Thanks!

dependencyNode.appendNode('scope', 'implementation')

def dependencyNode2 = dependenciesNode.appendNode('dependency')
dependencyNode2.appendNode('groupId', 'com.google.ar')
Copy link
Member

Choose a reason for hiding this comment

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

Use proper names for the variables !

PS: as mentioned above about the naming of variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected variable names in AR build.gradle

dependencyNode.appendNode('version', "${v4legacyVersion}")
dependencyNode.appendNode('scope', 'implementation')

def dependencyNode2 = dependenciesNode.appendNode('dependency')
Copy link
Member

@ranaaditya ranaaditya Jan 9, 2021

Choose a reason for hiding this comment

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

I think you should follow proper naming of variables !

ex - instead of dependencyNode you can use something like androidLegacyDependancyNode
and instead of dependencyNode2 you can use wearableDependencyNode

Proper naming of variables is very important in any OpenSource project !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected variable names in Core build.gradle file, Thanks for providing a clear example!

dependencyNode2.appendNode('version', "${gvrVersion}")
dependencyNode2.appendNode('scope', 'implementation')

def dependencyNode3 = dependenciesNode.appendNode('dependency')
Copy link
Member

Choose a reason for hiding this comment

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

Please rename variables here as well !

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected variables in VR build.gradle file.

@rupeshkumar22
Copy link
Contributor Author

@ranaaditya The changes have been done. I'll keep in mind using relevant variable names as you suggested, thanks for correcting!

@codeanticode codeanticode merged commit 9ac5869 into processing:master Apr 25, 2021
@rupeshkumar22 rupeshkumar22 deleted the mavenPublish branch April 30, 2021 20:36
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.

Migrate to maven-publish plugin
3 participants