-
Notifications
You must be signed in to change notification settings - Fork 3
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
Update dependencies and stop producing "distribution" file #220
Conversation
@labkey-susanh the HttpClient/HttpCore update seemed easy enough. I tested a few of the |
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.
For the artifactory plugin, we need to make sure the artifactoryPublish tasks, which TeamCity uses, work.
Also, I tried running a purgeNpmArtifacts
task and it produces a stack trace because of incompatible types. I can look at it a little later, or you can probably see it for yourself by running the command:
./gradlew purgeNAV -PalphaPrefix=fb-issue-48049 -s
(The command actually succeeds up to the point where it tries to process the response, so you'll need to find another one to purge to test the fix.)
src/main/groovy/org/labkey/gradle/plugin/extension/DistributionExtension.groovy
Outdated
Show resolved
Hide resolved
So we test I wasn't able to repro the |
@labkey-susanh @labkey-tchad This run built and published all distributions using this version of the gradle plugin: https://teamcity.labkey.org/buildConfiguration/LabKey_Trunk_Premium_InstallersCustom/3213578?expandBuildDeploymentsSection=false&hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandBuildChangesSection=true&logView=flowAware I think that means the Artifactory Plugin version is good? |
I succeeded in purging NPM artifacts with this version. For testing |
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 we roll the VERSION
file properties (buildUrl
and labkeyVersion
) into the distribution.properties
file. It would simplify the upgrade check a bit (putting all of the relevant information in a single file). We could also simplify the VERSION
file to just have the product version like it used to.
I like the idea. I'll make the changes to the plugin in this PR. Is |
This build doesn't publish to artifactory (since we don't want to publish artifacts from feature branches). My recommendation is to try this locally. You can check out the develop branch and update the gradle.properties locally to use your new version of the plugins, then try a command such as |
It isn't used by any tests or other product code but I don't know if any external integrations are using it for something. |
Yes, I've been testing locally. When I run this command, I get:
Is there another flag (as with distribution) that can force it to publish dev-mode artifacts? |
You can use |
Okay, |
You'll need to be in |
I believe that's where I am. For example: https://labkey.jfrog.io/ui/repos/tree/General/libs-snapshot-local/org/labkey/api/api/24.11-SNAPSHOT/api-24.11-20241003.135700-5.jar |
Rationale
Current dependencies have gotten out-of-date. For example, the latest OWASP plugin (10.0.4) fails to run due to its need for
commons-io
2.16.0 or later.The webapp now gets the distribution name from the
distribution.properties
file, so no need to produce or include the standalonedistribution
file.Move the
version
andbuildUrl
properties into thedistribution.properties
file.VERSION
file will go away once we're confident that no code path needs to read it.Related Pull Requests