artifactory

Gradle artifactory plugin saying “Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention'…”

末鹿安然 提交于 2019-12-05 08:46:28
问题 Here's the configuration to get the artifactory plugin: buildscript { repositories { mavenCentral() maven { url 'http://jcenter.bintray.com' } } dependencies { classpath group:'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.0.1' } } apply plugin:'com.jfrog.artifactory' apply plugin:'ivy-publish' ...some publish spec stuff... I run gradle (2.3) and I get: > Failed to apply plugin [id 'com.jfrog.artifactory'] > Cannot cast object 'org.jfrog.gradle.plugin.artifactory.dsl

How to configure grails 2.4.0 to resolve artifacts from JFrog Artifactory with authentication?

你离开我真会死。 提交于 2019-12-05 05:17:01
问题 It's a problem which every few months occurs. I do some grails upgrades and the app can't resolve my artifacts from my secured artifactory repository. This time i did an upgrade to grails 2.4.0 and yet again the problem exists. I configured my repository as described in the grails documentation (which seems very outdated) but grails can't resolve my dependencies from our repo. It doesn't authenticate correctly. So my final questions which many people already have asked: How to configure

How to setting up artifactory for use with node.js artifacts?

青春壹個敷衍的年華 提交于 2019-12-04 20:29:51
All, Currently all of our services uses different other internal services and their dependency is resolved by directly giving Bitbucket repository path of the services in the build config file (package.json). We want to setup a local artificatory where all the internal modules will be made available and dependencies can be resolved from their than from Bitbucket directly. Can someone give me some pointers how can I do this? What are the various steps involved? I would set up this for production environment so what factors should I keep in mind while installation. I recommend you to follow this

Android : resolve external dependencies over Artifactory with Gradle

岁酱吖の 提交于 2019-12-04 19:38:32
So we are currently working on the migration of ant building/publishing scripts for Android projects to the new Android Gradle build system. Our projects generally relies on both internal and third-party libraries. The internal libraries have been published on Artifactory repositories and now I'm struggling to resolve the dependencies over them. buildscript { repositories { maven { url 'http://repo1.maven.org/maven2' } maven{ url 'http://dl.bintray.com/jfrog/jfrog-jars' } } dependencies { classpath 'com.android.tools.build:gradle:0.4' classpath(group: 'org.jfrog.buildinfo', name: 'build-info

Automatically use secret when pulling from private registry

醉酒当歌 提交于 2019-12-04 18:18:03
问题 Is it possible to globally (or at least per namespace), configure kubernetes to always use an image pull secret when connecting to a private repo? There are two use cases: when a user specifies a container in our private registry in a deployment when a user points a Helm chart at our private repo (and so we have no control over the image pull secret tag). I know it is possible to do this on a service account basis but without writing a controller to add this to every new service account

Artifactory AQL download artifact

℡╲_俬逩灬. 提交于 2019-12-04 16:44:58
Is there a way to download an artifact using AQL? I have a query sent with: curl -u user:pass \ -X POST https://artifactoryURL/artifactory/api/search/aql \ -H 'content-type: text/plain' \ -T query.aql And my query.aql : items.find( { "repo":{"$eq":"repo"}, "$and": [ { "path": { "$match": "path/*"}, "name": { "$match": "*.rpm"} } ] } ) .sort({ "$desc": ["modified"] }) .limit(1) Now that I know it returns what I want, Is there a way to change the request from api/search/aql to something like api/download/aql and get those items? EDIT: I had also tried doing this with the jfrog cli but they don't

npm publish to Artifactory not working

强颜欢笑 提交于 2019-12-04 16:20:25
I have setup Artifactory according to the instructions given here, http://www.jfrog.com/confluence/display/RTF/Npm+Repositories , but on publishing a package the following is displayed: npm http PUT http://localhost:8083/artifactory/api/npm/npm-local/UIBase npm http 400 http://localhost:8083/artifactory/api/npm/npm-local/UIBase npm ERR! registry error parsing json npm ERR! publish Failed PUT response 400 npm ERR! SyntaxError: Unexpected token M npm ERR! Missing attachments with tarball data, aborting upload for: 'UIBase' npm ERR! at Object.parse (native) npm ERR! at RegClient.<anonymous> (/usr

Can I include the mvn deploy:deploy-file in the pom or settings.xml instead of cli goal

好久不见. 提交于 2019-12-04 16:09:37
问题 I need to deploy a custom jar to Artifactory along with the jar generated from my Java project. Currently the only method I can find is through command line goal using: mvn deploy:deploy-file -DgroupId=<group-id> \ -DartifactId=<artifact-id> \ -Dversion=<version> \ -Dpackaging=<type-of-packaging> \ -Dfile=<path-to-file> \ -Durl=<url-of-the-repository-to-deploy> Is there a way of including this in the pom file? As a plugin or something? 回答1: Sure. Just define an execution of the maven-deploy

Maven. Repository authentication

点点圈 提交于 2019-12-04 14:55:25
I tried setup deploy to local repository: -- settings.xml -- <server> <id>myrepo</id> <username>deployer</username> <password>123456</password> </server> -- pom.xml --- <repositories> <repository> <id>myrepo</id> <url>http://myserver.com/artifactory/libs-release-local</url> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> when I execute "mvn deploy" I got error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.4:

How to configure a longer version Number in artifactory

橙三吉。 提交于 2019-12-04 13:35:08
The version-numbers for our jars have to be longer them x.x.x. We would rather need x.x.x.x to integrate some old-fashioned self-made mechanism. This is, because we tag our software with x.x.x and as soon as we have a delivery to a customer one specific jar has to be build exactly at this point of time to fit to another backend, which communicates with our program. For that reason this one jar has the version 2.3.4.1, when generated and in next delivery of the same Version it is build and named 2.3.4.2. Now artifactory cannot handle this an doesn't save more than x.x.x.2 in some cases. So we