大佬教程收集整理的这篇文章主要介绍了如何解决:无法在 Eclipse 中使用与 Gradle 分发问题的连接来运行构建操作?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
出现问题,在eclipse中,项目被右击项目 > Gradle > refresh Gradle Project
我尝试了不同的方法,下载 \gradle-4.3.1 文件,然后转到窗口 > 首选项 > 本地安装目录 > c:\gradle-4.3.1
record
apply plugin: 'java'
repositorIEs {
mavenCentral()
}
buildscript {
repositorIEs {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencIEs {
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
}
}
apply plugin: "com.github.johnrengelman.shadow"
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.XXXX.webservices.samples.Controller'
}
bas@R_616_8371@ = 'XXXXX'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
jar {
bas@R_616_8371@ = 'XXXX'
from('src/main') {
include 'resources/*.propertIEs'
}
manifest {
attributes 'Main-Class': 'com.netsuite.webservices.samples.Controller'
}
}
dependencIEs {
compile filetree(dir: 'lib',includes: ['suitetalk-*0.jar'])
compile 'axis:axis:1.4'
runtime 'commons-httpclIEnt:commons-httpclIEnt:3.1'
runtime 'org.slf4j:log4j-over-slf4j:1.7.6'
runtime 'org.slf4j:slf4j-nop:1.7.25'
compiLeonly 'com.Google.code.findBUGs:Jsr305:3.0.1'
}
apply plugin: 'com.github.johnrengelman.shadow'
task runApplication(type: javaexeC) {
description "Builds and executes the sample application"
classpath = sourceSets.main.runtimeClasspath
main = "com.netsuite.webservices.samples.Controller"
standardinput = system.in
}
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的如何解决:无法在 Eclipse 中使用与 Gradle 分发问题的连接来运行构建操作?全部内容,希望文章能够帮你解决如何解决:无法在 Eclipse 中使用与 Gradle 分发问题的连接来运行构建操作?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。