2015-10-15 163 views
2

考慮我的build.gradle:添加Java REPL的build.gradle

plugins { 
    id 'de.aaschmid.cpd' version '0.4' 
} 

group 'ar.fiuba.tdd' 
version '1.0-SNAPSHOT' 

apply plugin: 'java' 
apply plugin: 'idea' 
apply plugin: 'eclipse' 
apply plugin: 'checkstyle' 
apply plugin: 'maven' 
apply plugin: 'findbugs' 
apply plugin: 'pmd' 
apply plugin: "jacoco" 
apply from: 'gradle/fatjar.gradle' 
apply from: 'gradle/quality.gradle' 

sourceCompatibility = 1.8 
targetCompatibility = 1.8 

repositories { 
    jcenter() 
    maven { 
     url "http://nexus-tecnicas7510.rhcloud.com/nexus/content/repositories/third-party" 
    } 
} 

dependencies { 
    testCompile 'org.hamcrest:hamcrest-all:1.3' 
    testCompile 'junit:junit:4.12' 
    compile 'org.jgrapht:jgrapht-core:0.9.1' 
    compile 'com.googlecode.json-simple:json-simple:1.1' 
} 

我如何添加一個JAVA REPL像https://github.com/albertlatacz/java-replhttps://github.com/tkruse/gradle-groovysh-plugin

謝謝!

回答

2

Gradle groovysh插件包含說明,它如何應用到您的Gradle腳本中。你只需要在插件中添加一個插件ID和修改buildscript依賴關係,如:

plugins { 
    id 'de.aaschmid.cpd' version '0.4' 
    id "com.github.tkruse.groovysh" version "1.0.8" 
} 

並添加buildscript庫:

buildscript { 
    repositories { 
     jcenter() 
    } 
} 
+0

我如何使用這個shell與我的impl? https://bitbucket.org/7510201502g14/tp1/overview – Adrian

相關問題