2016-09-17 4 views
2

herokuにspring boot gradleプロジェクトを展開しようとしています。アプリはローカルで正常に動作しています。しかしgitのプッシュHerokuのマスターエラーでプッシュクラッシュを実行した後エラー:パッケージorg.jsonが がここにここに私のProcfilepushig spring-boot(gradle)プロジェクトからherokuへのプロジェクト中にorg.jsonが存在しません

web: java -Xmx384m -Xss512k -XX:+UseCompressedOops -jar target/*.jar 
--server.port=$PORT 
--spring.data.mongodb.uri=$MONGOLAB_URI 

で、存在しないことは、私のbuild.gradleある

apply plugin: 'java' 
apply plugin: 'eclipse' 
apply plugin: 'spring-boot' 



buildscript { 
    ext { 
     springBootVersion = '1.4.0.RELEASE' 
    } 
    repositories { 
     mavenCentral() 
     maven { 
      url "https://plugins.gradle.org/m2/" 
     } 
    } 
    dependencies { 
     classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
    } 
} 



jar { 
    baseName = 'planaroute' 
    version = '0.0.1-SNAPSHOT' 
} 
sourceCompatibility = 1.8 
targetCompatibility = 1.8 

repositories { 
    mavenCentral() 
} 


dependencies { 
    compile("org.springframework.boot:spring-boot-starter-web") 
    compile('org.springframework.boot:spring-boot-starter') 
    compile("org.springframework.boot:spring-boot-starter-data-mongodb") 
    compile 'org.springframework.data:spring-data-mongodb:1.9.2.RELEASE' 
    compile group: 'org.json', name: 'json', version: '20160810' 
    compile group: 'org.json', name: 'org.json', version: 'chargebee-1.0' 
    testCompile('org.springframework.boot:spring-boot-starter-test') 
} 


eclipse { 
    classpath { 
     containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER') 
     containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8' 
    } 
} 

私はorg.json jarをダウンロードして、このプロジェクトに外部的にjarを追加しました。それはまだ動作しません。

答えて

0

私はbuild.gradleファイルに次の依存関係を追加しました。

依存関係{ コンパイル 'org.json:JSON:20090211' 。 。私の他のすべてのプロジェクトの依存関係 。 }

私が助けてくれることを願っています。

クレジットから Dependencies not copied into jar (in Gradle)私はこのヒントを得ました。

最高の願い、 Marcos。

関連する問題