Skip to content

Publish Libraries to deploy into Tomcat #76

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 3 commits into from
May 12, 2021

Conversation

labkey-tchad
Copy link
Member

Rationale

LabKey distributions include several jars that get deployed to $CATALINA_HOME/lib. The gradle plugin currently pulls these jars from the tomcatJars configuration of the server project. This new task (:server:tomcatLibsZip) allows a standalone module build to pull compatible libraries from Artifactory to produce a distribution.

Related Pull Requests

Changes

  • Add :server:tomcatLibsZip task and publish its output to Artifactory

@@ -154,10 +162,25 @@ project.publishing {
}
}

tomcatJars(MavenPublication) {
groupId = 'org.labkey.api'
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure what the appropriate group is. I also considered org.labkey and org.labkey.build.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think org.labkey.build makes sense.

Copy link
Contributor

@labkey-susanh labkey-susanh left a comment

Choose a reason for hiding this comment

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

Looks good. I would change the group name of the artifact, though. org.labkey.api doesn't make as much sense to me as the other options.

@@ -154,10 +162,25 @@ project.publishing {
}
}

tomcatJars(MavenPublication) {
groupId = 'org.labkey.api'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think org.labkey.build makes sense.

@@ -33,6 +33,14 @@ dependencies
xsdDoc "docflex:docflex-xml-re:${docflexXmlReVersion}"
}

project.tasks.register("tomcatLibsZip", Zip) {
Zip zip ->
zip.group = "Build"
Copy link
Contributor

Choose a reason for hiding this comment

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

Could use GroupNames.BUILD here instead.

@labkey-tchad labkey-tchad merged commit 08622eb into release21.3-SNAPSHOT May 12, 2021
@labkey-tchad labkey-tchad deleted the 21.3_fb_publishTomcatLibs branch May 12, 2021 20:43
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