heroku for java_在Heroku上部署Spring应用程序

我'm developing Spring web services using MongoDB and I'用gradle建造它 . 我想在Heroku上部署它 . 我正在根据文档进行推送,并且我在gradle上更改了buildpack,根据这个:https://devcenter.heroku.com/articles/buildpacks

一开始,我正在做 git init ,然后我使用 git add . 添加所有内容并使用 git commit -m "message" 进行提交 . 在那个标准程序之后,我正在使用 git push heroku master 将所有内容推送到heroku .

之后,下载依赖项,之后我收到错误:

1 error

:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':compileJava'

> Compilation failed; see the compiler error output for details.

...

BUILD FAILED

这是我的build.gradle:

buildscript {

repositories {

maven { url "http://repo.spring.io/libs-release" }

mavenLocal()

mavenCentral()

}

dependencies {

classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.7.RELEASE")

}

}

apply plugin: 'java'

apply plugin: 'application'

apply plugin: 'eclipse'

apply plugin: 'idea'

apply plugin: 'spring-boot'

jar {

baseName = 'appname'

version = '0.1.0'

}

repositories {

mavenLocal()

mavenCentral()

maven { url "http://repo.spring.io/libs-release" }

}

dependencies {

compile("org.springframework.boot:spring-boot-starter-web")

compile("org.springframework.boot:spring-boot-starter-actuator")

testCompile("junit:junit")

compile("org.springframework.data:spring-data-rest-webmvc")

compile("org.springframework.data:spring-data-mongodb")

compile("com.google.guava:guava:17.0")

compile("org.apache.commons:commons-lang3:3.3.2")

}

task wrapper(type: Wrapper) {

gradleVersion = '1.11'

}

task stage(dependsOn: ['clean', 'installApp'])

有人有解决方案吗?提前致谢 .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值