gpt4 book ai didi

java - 添加 Java REPL build.gradle

转载 作者:行者123 更新时间:2023-11-30 08:45:43 24 4
gpt4 key购买 nike

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

谢谢!

最佳答案

Gradle groovysh 插件包含描述,如何将其应用到您的 gradle 脚本中。您只需在插件中添加一个插件 ID 并修改构建脚本依赖项,例如:

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

并添加构建脚本存储库:

buildscript {
repositories {
jcenter()
}
}

关于java - 添加 Java REPL build.gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33155496/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com