以我的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-repl或https://github.com/tkruse/gradle-groovysh-plugin这样的JAVA?
谢谢!
发布于 2015-10-15 18:38:10
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()
}
}发布于 2018-01-18 03:08:53
另请参阅:
它是一个基于'java-repl (@Github)‘的Java 8(而不是Groovy) REPL,它有自己的网站:
http://www.javarepl.com
我被引导相信Java 9有自己的REPL,内置的。
https://stackoverflow.com/questions/33155496
复制相似问题