-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
server/build.gradle
Outdated
@@ -154,10 +162,25 @@ project.publishing { | |||
} | |||
} | |||
|
|||
tomcatJars(MavenPublication) { | |||
groupId = 'org.labkey.api' |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
server/build.gradle
Outdated
@@ -154,10 +162,25 @@ project.publishing { | |||
} | |||
} | |||
|
|||
tomcatJars(MavenPublication) { | |||
groupId = 'org.labkey.api' |
There was a problem hiding this comment.
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.
server/build.gradle
Outdated
@@ -33,6 +33,14 @@ dependencies | |||
xsdDoc "docflex:docflex-xml-re:${docflexXmlReVersion}" | |||
} | |||
|
|||
project.tasks.register("tomcatLibsZip", Zip) { | |||
Zip zip -> | |||
zip.group = "Build" |
There was a problem hiding this comment.
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.
Rationale
LabKey distributions include several jars that get deployed to
$CATALINA_HOME/lib
. The gradle plugin currently pulls these jars from thetomcatJars
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
:server:tomcatLibsZip
task and publish its output to Artifactory