考虑我的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'
}

如何添加https://github.com/albertlatacz/java-replhttps://github.com/tkruse/gradle-groovysh-plugin这样的JAVA REPL?

谢谢 !

最佳答案

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()
    }
}

10-07 19:09
查看更多