If you would like to build and upload from local server:-

ARTIFACTORY: How to build and deploy the conan package to Artifactory

AuthorFullName__c
Janardhana JL
articleNumber
000005564
ft:sourceType
Salesforce
FirstPublishedDate
2023-01-30T15:49:07Z
lastModifiedDate
2023-01-30T15:49:07Z
VersionNumber
1
1. Create a project template (conan new mypkg/0.1 -m=cmake_lib)

2. Make sure it builds and creates (conan create .) (you will need cmake + compiler installed on the system)

3. Now add a dependency. Open conanfile.py and add a dependency, for example “requires = openssl/1.1.1o, "zlib/1.2.11" there (as a class attribute).

Example:
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
class NewpkgConan(ConanFile):
    name = "newpkg"
    version = "1.0.0"
    requires = "openssl/1.1.1o@", “zlib/1.2.11@”
    # Optional metadata

4. Repeat the package creation using “conan create .” or “conan create . --build=missing”(if no precompiled binaries exist in the upstream). You should see the dependency downloaded/ created.

5. Follow the SetMeUp page to add the Artifactory local repository

6. Upload the package ( conan upload mypkg* -r=myrepo --all -c)