2016-05-02 2 views
1

Iを生成することができない、トラヴィス-CIと私Kotlinプロジェクトを統合する試みでトラビス-CIの依存関係を解決できません成功し、私は私のGradleはリポジトリが見つかりませんメッセージが表示されます、構築...マイKotlinプロジェクトは

リポジトリが

version '1.0-SNAPSHOT' 

buildscript { 
    dependencies { 
     classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.0-beta-4584" 
    } 
} 

apply plugin: 'java' 
apply plugin: 'kotlin' 

sourceCompatibility = 1.5 

repositories { 
    mavenCentral() 
    maven { 
     url "http://repository.jetbrains.com/all" 
    } 
} 

dependencies { 
    testCompile 'org.spek:spek:0.1.188' 
    compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.0-beta-4584" 
    testCompile group: 'junit', name: 'junit', version: '4.11' 
} 

build.gradle私のファイルである私のトラビスは、受信したメッセージが

ある

language: java 

非常に簡単ですリンクを構築するために10

FAILURE: Build failed with an exception. 
* What went wrong: 
A problem occurred configuring root project 'dojo-s01e01-cheque-por-extenso'. 
> Could not resolve all dependencies for configuration ':classpath'. 
    > Cannot resolve external dependency org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.0-beta-4584 because no repositories are defined. 
    Required by: 
     :dojo-s01e01-cheque-por-extenso:unspecified 
* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
BUILD FAILED 

がある - >https://travis-ci.org/castrolol/dojo-s01e01-cheque-por-extenso.kotlin/builds/127235950

答えて

3

同様にあなたのbuildscript { ... }範囲に

repositories { 
    mavenCentral() 
} 

を追加します。

また、最新のKotlinバージョンを使用することを検討してください。最新のものはhereです。

+0

正常に機能しました、ありがとうございます –

関連する問題