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

add a gradle quickstart #462

Closed
rawlingsj opened this issue Mar 21, 2018 · 6 comments
Closed

add a gradle quickstart #462

rawlingsj opened this issue Mar 21, 2018 · 6 comments

Comments

@rawlingsj
Copy link
Member

No description provided.

@jstrachan
Copy link
Member

ok I've got a pipeline going using the builder-gradle image
https://github.com/jstrachan/spring-boot-web-gradle/blob/master/Jenkinsfile

if I can get this working I'll turn it into a quickstart and add it to the build pack.

Current issues:

  • not sure how to enable mvn proxying to the local nexus
  • whats the gradle version of mvn versions:set -DnewVersion=1.2.3 to update the versions?

jstrachan added a commit to jstrachan/jx that referenced this issue Mar 21, 2018
can either use:
```
jx create spring -x
```
to get prompted for the project types or add
```
jx create spring --type gradle-project
```

see jenkins-x#462
requires this PR to also merge: jenkins-x/draft-packs#9
@jstrachan
Copy link
Member

PR added to jx binary, in a day or so we'll merge the PR for the build packs and we should have gradle support (once the new cloud-environments PR is merged) too
jenkins-x/draft-packs#9

@ehirsch
Copy link

ehirsch commented Mar 21, 2018

Setting environment specific “things” is done with init scripts in gradle. See https://docs.gradle.org/current/userguide/init_scripts.html for more information.
Basically you would create a file ~/.gradle/init.gradle or ~/.gradle/init.d/*.gradle
And in there you would add

allprojects {
    repositories {
        maven {
            url http…
        }
    }
}

@Cervator
Copy link

Cervator commented Jun 5, 2018

Bump - can probably close this with https://github.com/jenkins-x-quickstarts/spring-boot-http-gradle in place

@ehirsch
Copy link

ehirsch commented Jun 6, 2018

I would think so.

@rawlingsj
Copy link
Member Author

great - thanks!

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

No branches or pull requests

4 participants