作者:doudou888公馆 | 来源:互联网 | 2023-01-22 11:24
我是新手,并试图在日食中使用gradle插件.
使用在线项目生成器创建了一个java gwt项目https://gwt-project-generator.cfapps.io/
![在此输入图像描述](https://img.php1.cn/3cd4a/1eebe/cd5/a5d7215df572c386.webp)
它非常好地导入了所有依赖项.
现在我正在尝试将项目从demo重命名为gradle-demo,我很困惑.它每次都会自动将名称恢复为演示.在build.gradle文件中,我没有看到任何表明该名称强制执行的内容.
有什么指针吗?
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
}
}
apply plugin: 'gwt'
apply plugin: 'war'
// In this section you declare where to find the dependencies of your project
repositories {
jcenter()
}
repositories { mavenCentral() }
// In this section you declare the dependencies for your production and test code
dependencies {
providedCompile('fr.lteconsulting:angular2-gwt:1.6')
providedCompile('com.google.dagger:dagger-gwt:2.8')
providedCompile('org.jboss.gwt.elemento:elemento-core:0.5')
providedCompile('com.vaadin.polymer:vaadin-gwt-polymer-elements:1.7.0.0')
providedCompile('org.gwtbootstrap3:gwtbootstrap3:0.9.3')
providedCompile('com.github.tdesjardins:gwt-ol3:2.9.0')
providedCompile('com.googlecode.gwtquery:gwtquery:2.1.0')
providedCompile('com.github.gwtreact:gwt-react:0.3.0')
providedCompile('com.gwidgets:gwty-leaflet:0.4')
providedCompile('com.sksamuel.jqm4gwt:jqm4gwt-remote:2.1.0')
providedCompile('com.intendia.gwt:rxjava-gwt:1.0.14-beta1')
testCompile('junit:junit:4.11')
testCompile('com.google.gwt.gwtmockito:gwtmockito:1.1.6')
}
gwt {
gwtVersion='2.8.0'
modules 'com.ainosoft.firstGradleGwt'
maxHeapSize = "1024M"
superDev {
noPrecompile=true
}
}
它还显示了gwt项目配置中缺少的构建器
![在此输入图像描述](https://img.php1.cn/3cd4a/1eebe/cd5/b428d8f746fb8d47.webp)
1> lance-java..:
将此添加到您的 build.gradle
apply plugin: 'eclipse'
eclipse {
project {
name = 'some-better-name'
}
}
请参阅EclipseProject文档