Skip to content
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

Profiles: repositories and credentials #10013

Closed
sebDK opened this issue Jun 27, 2016 · 2 comments
Closed

Profiles: repositories and credentials #10013

sebDK opened this issue Jun 27, 2016 · 2 comments

Comments

@sebDK
Copy link

sebDK commented Jun 27, 2016

Hi,

I host a couple of plugins and profiles on our internal repository(artifactory) protected by credendials (username / password).
There are 2 different situations where credentials make trouble.

  1. Add a repository in a profile
    Here what should be written in profile.yml
repositories:
    - "https://myrepo.org/artifactory/plugins-release-local/"

But it is not possible to add any credentials.

2.To use a profile hosted on my internal repository(artifactory) protected by credendials, it is suggested to add in USER_HOME/grails/.settings.groovy:

grails {
  profiles {
    web-sso {
      groupId = "org.grails.profiles"
      version = "1.0.0"
    }
    repositories {
       artifactory{
            url="http://myrepo.org/artifactory/plugins-release-local/"
        }
    }
  }
}

But again by having a look inside the source code, it looks like not possible to add credentials.

Any plan to add credentials support?

Environment Information

  • Operating System: Windows 7 64 bits
  • Grails Version: grails-3.2.0.M1
  • JDK Version: jdk1.8.0_92

Thanks for your help.

Sébastien

@jameskleeh
Copy link
Contributor

@sebDK You would just pass a username and password? Or are you using a different authentication type?

@sebDK
Copy link
Author

sebDK commented Jul 28, 2016

Hi @Schlogen ,
Yes a username and a password would be great.
It could be something like (credentials) in build.gradle:

 maven {
        credentials {
            username 'u'
            password 'p'
        }
        url "http://myserver:8081/artifactory/libs-release-local/"
    }

Thanks for your help.

S.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants