Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

authrenticate to artifactory grails 2.1.1

grails.project.ivy.authentication = {
    repositories {
        mavenRepo "http://SERVER:8081/artifactory/remote-repos"

    }
    credentials {
        realm = "Artifactory Realm"
        host = "SERVER"
        username = "USER"
        password = "PASSWORD"
    }
}

grails.project.dependency.resolver = "maven" // or ivy

grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve
    legacyResolve false // whether to do a secondary resolve on plugin installation, not advised and here for backwards compatibility

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

//        mavenLocal()

        mavenRepo id: 'Artifactory', url: "http://SERVER:8081/artifactory/remote-repos"

    }
Comment

PREVIOUS NEXT
Code Example
Ruby :: how to check ruby version 
Ruby :: ruby format date time 
Ruby :: integer to string ruby 
Ruby :: rails migration rename column 
Ruby :: rspec parallel tests 
Ruby :: ruby replace first character in string 
Ruby :: rails disable cache on dev 
Ruby :: run a specific migration rails 
Ruby :: rails distinct 
Ruby :: how to get current month end date in ruby 
Ruby :: rails find_by order limit 
Ruby :: edit file terminal mac 
Ruby :: find a key in nested hash ruby 
Ruby :: ruby timestamp 
Ruby :: how to create 2 dimensional array in ruby 
Ruby :: iterate through values of an object rails 
Ruby :: ruby debugger 
Ruby :: ruby get current process id 
Ruby :: rails keep all params except for some 
Ruby :: insert element in array ruby 
Ruby :: selenium webdriver get attribute ruby 
Ruby :: sendgrid ruby on rails 
Ruby :: ruby if else 
Ruby :: ruby for programmers 
Ruby :: rails humanize date 
Ruby :: Hash.new constructor 
Ruby :: ruby on rails recover data in params with form tag 
Ruby :: rails .map unless nil 
Ruby :: find records using the IN expression in Rails 
Ruby :: hoow to match a complete word in ruby? 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =