WXB*_*B13 43 intellij-idea gradle
似乎eclipse插件使用以下机制来执行此操作:
apply plugin: 'java'
apply plugin: 'eclipse'
eclipse {
classpath {
downloadSources=true
}
}
Run Code Online (Sandbox Code Playgroud)
但我找不到想法插件的相应选项.我错过了什么?
这是build.gradle文件:
apply plugin: 'groovy'
apply plugin: 'idea'
repositories {
mavenCentral()
mavenRepo name: "Grails", url: "http://repo.grails.org/grails/repo/"
}
dependencies {
groovy 'org.codehaus.groovy:groovy-all:2.0.4'
compile 'org.slf4j:slf4j-log4j12:1.6.6', 'postgresql:postgresql:9.1-901.jdbc4', 'net.sourceforge.nekohtml:nekohtml:1.9.16'
['core', 'hibernate', 'plugin-datasource', 'plugin-domain-class'].each { plugin ->
compile "org.grails:grails-$plugin:2.1.0"
}
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
// Fat Jar Option (http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-Creatingafatjar)
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task wrapper(type: Wrapper) {
gradleVersion = '1.0'
}
Run Code Online (Sandbox Code Playgroud)
naX*_*aXa 29
我遇到以下配置问题:
idea {
module {
// if you hate browsing Javadoc
downloadJavadoc = false
// and love reading sources :)
downloadSources = true
}
}
repositories {
mavenLocal()
mavenCentral()
}
mavenLocal()下载并附加已删除的源时.
rad*_*tao 16
对于 Kotlin DSL:
plugins {
idea
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
47136 次 |
| 最近记录: |