artifactory

Can SBT publish to JFrog artifactory

亡梦爱人 提交于 2019-11-29 14:49:20
问题 My organization uses JFROG artifactory for distribution of all jars. So far I have always used SBT for my Scala development. But now when i am searching for ways to publish jars built by SBT into JFROG artifactory, I only find this plugin on github which is in "alpha" state https://github.com/JFrogDev/artifactory-sbt-plugin I want to know if this plugin is the only way to publish jars from sbt to JFrog artifactory? or are there better means. since this plugin says that its in alpha... I don't

Getting both Maven and SBT use local Artifactory-server

依然范特西╮ 提交于 2019-11-29 14:19:42
问题 I need to get both Maven and SBT to use local Artifactory-server which is only machine that has Internet connection. Servers, CI-machine, etc don't have access to outside world. I'm getting grey hair with SBT especially. SBT Problems connecting to Artifactory With 0.11.[0..3] I can SBT to access Artifactory via following: Unzip sbt-launcher.jar Get sbt.boot.properties and copy it somewhere Edit sbt.boot.properties to include only 'local' repository and our Artifactory server With 0.12 or 0.13

Artifactory not deleting Unique Snapshots

拟墨画扇 提交于 2019-11-29 10:33:30
We have an Artifactory server that is using 220Gb - with the libs-snapshots-local repository utilising 98% of that storage. When we looked at the configuration for the repository we noted that Maven snapshot behaviour was set to: unique and that the Max Unique Snapshots value was 0 . We changed the Max Unique Snapshots value to 5. This seems to work when we are still working on the Snapshot, however if we no longer deploy to the snapshot (a release has been made) then it doesn't delete any of these files. As an example: we have the following in the Snapshots repository: com/company/some/app/1

Publish .aar file with javadocs attached on artifactory repo

て烟熏妆下的殇ゞ 提交于 2019-11-29 09:50:24
问题 I'm trying to publish an AAR with javadoc file to my maven repo through artifactory gradle puglin. The aar file is doing uploaded with success, but i the javadoc don't. Which script can i use to upload my javadocs?. This is my build.gradle code apply plugin: 'com.android.library' apply plugin: 'com.jfrog.artifactory' apply plugin: 'maven-publish' def packageName = 'br.com.lexsis.libtest' def libraryVersion = '0.0.1-SNAPSHOT' android { compileSdkVersion 23 buildToolsVersion "23.0.0"

Publish SNAPSHOT artifacts to Maven using IVY - what's the magic?

核能气质少年 提交于 2019-11-29 07:53:30
We have a slight convoluted situation... For the most part we've been using IVY and ANT to manage our builds and dependencies. Now the company is moving towards using Maven. We have a set of projects called common libraries which are used by several of the core products. Common libraries use IVY and are published to an IVY repository. We also need to make common libraries available for our new Maven projects. So when common libraries get built and published, I've modified the script to publish to Maven (Artifactory) as well IVY. Here are the two targets that now get called when publishing the

How are snapshot and release repositories used differently?

江枫思渺然 提交于 2019-11-29 03:02:46
问题 I understand that during development build artifacts are placed in the snapshot repository. When a product needs to go to QA for testing, do teams pull from the snapshot repository? Or do they do a full build, deploy to the release repository, and then give it to QA from there? Also, if my snapshots repository holds all the build artifacts from each build, how is this commonly cleaned up? I could see keeping the last 5 builds from the build server, but not every one. I'm using Artifactory if

SBT is unable to find credentials when attempting to download from an Artifactory virtual repo

别来无恙 提交于 2019-11-29 02:28:49
I'm trying to run SBT behind a corporate firewall. Another team has configured an Artifactory proxy. This proxy works fine with anonymous access switched on, but when we make it require a password thinks start to go wrong. When I run SBT on my workstation I get the following error: [error] Unable to find credentials for [Artifactory Realm @ coderepo.xxx.amrs.bigco.com] The result of this is that I cannot bootstrap sbt: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.scala-lang#scala

How to stop Maven/Artifactory from keeping Snapshots with timestamps

别来无恙 提交于 2019-11-29 00:15:44
问题 Due to disk space considerations I'd like to only ever keep one version of any snapshot in my repository. Rather than keeping multiple versions with timestamp suffixes e.g. ecommerce-2.3-20090806.145007-1.ear How can I set this up? Is this a build setting or repository (Artifactory) setting Thanks! 回答1: The simplest (and recommended) way is to use non-unique snapshots. If you must use unique snapshots, you can do this in Artifactory by specifying the <maxUniqueSnapshots> property on the

Gradle Artifactory Plugin - How to publish artifacts from multiple modules in a project?

☆樱花仙子☆ 提交于 2019-11-28 21:53:41
I have a project which has a SharedCode (Java) module and secondly an Android (Android library) module which depends on the SharedCode module. I want to publish a jar artifact from the SharedCode module and an aar artifact from the Android module. I can't figure out how to compose my build.gradle files so that both modules publish to Artifactory when the artifactoryPublish task is run. At the moment only the SharedCode module publishes its artifact to Artifactory. My build.gradle files are as below. Note that the maven-publish aspect of my build.gradle files appears to be correct because when

Where to put the gradle.properties file

早过忘川 提交于 2019-11-28 17:22:54
I am following the Artifactory 1-min Setup . I have Artifactory up and running on my localhost, and now I am trying to integrate it with Intellij/Gradle. The artifactory webapp gives a gradle.properties and build.gradle file, so I'm trying to start with adding these to my IntelliJ project. However, I don't know where to put the gradle.properties file. I tried copying the gradle.properties contents (key=value pairs) to gradle/wrapper/gradle-wrapper.properties , unfortunately doing that does not make the keys accessible in the build.gradle file. Any ideas? ericbn Gradle looks for gradle