2015-10-15 119 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

相关问题