Grails 2.2.3
과 Ember.js (rc3)
을 사용하여 웹 응용 프로그램을 개발하고 있습니다. 나는 IntelliJ IDEA 12.1
을 IDE로 사용하고 또한 IntelliJ TeamCity
CI 서버를 사용하고 있습니다 - 모든 것은 Windows 7 Professional SP1
입니다. 지금은 (... 등등 Grails
, Grunt
, 테스트를 결합하고) 더 나은 내 빌드 작업을 구성 할 Gradle 1.7
을 사용하고 싶었 나는 낙원을 기대하지만 내가 가진 모든 마자 지옥 ...IntelliJ IDEA : 색인 생성 파일 - 무한 루프
했다 나는 gradle.build
파일을 사용하기 시작했고 IntelliJ IDEA에서 JetGradle
을 시작하기 시작했습니다. 파일을 계속해서 스캔하고 색인을 생성하기 시작했습니다. 실제로는 14 시간 동안 계속 실행 중입니다. IDE가 차단되어있어 아무 것도 할 수 없습니다. 정말 실망 스럽습니다.
는 여기에 어떤 관심 있다면입니다 내 gradle.build
:
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.api.tasks.Exec
import org.grails.gradle.plugin.GrailsTask
buildscript {
repositories {
maven { url "http://my.company.archiva:8080/repository/internal" }
maven { url "http://repo.grails.org/grails/repo" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:2.0.0-SNAPSHOT",
"org.grails:grails-bootstrap:2.2.3"
}
}
apply plugin: "grails"
apply plugin: "base"
repositories {
maven { url "http://my.company.archiva:8080/repository/internal" }
maven { url "http://repo.grails.org/grails/repo" }
}
grails {
grailsVersion "2.2.3"
}
configurations {
all {
exclude module: "commons-logging"
exclude module: "xml-apis"
exclude module: "grails-plugin-log4j"
exclude module: "slf4j-log4j12"
}
test {
exclude module: "groovy-all"
}
compile {
exclude module: "hibernate"
}
compileOnly
}
dependencies {
compile("com.my.company:grails-custom-plugin1:[email protected]")
compile("com.my.company:grails-cusotm-plugin:[email protected]")
compile("com.my.company:backendapi:1.1")
compile("org.mozilla:rhino:1.7R4")
compile("io.netty:netty:3.3.1.Final")
compile("com.google.protobuf:protobuf-java:2.4.1")
compile("org.grails.plugins:cache:1.0.1")
compileOnly "org.grails:grails-plugin-tomcat:$grails.grailsVersion" // No tomcat-*.jar in the war
bootstrap "org.codehaus.groovy:groovy-all:2.0.5"
}
/*
GRADLE Wrapper
*/
task wrapper(type: Wrapper) {
gradleVersion = '1.7'
}
/*
GRUNT Section
*/
task npm(type: Exec) {
group = "Build"
description = "Installs all Node.js dependencies defined in package.json"
workingDir "web-app"
commandLine = ["npm.cmd", "install"]
inputs.file "package.json"
outputs.dir "node_modules"
}
task production(type: GruntTask) {
gruntArgs = "prod"
}
class GruntTask extends Exec {
private String gruntExecutable = Os.isFamily(Os.FAMILY_WINDOWS) ? "grunt.cmd" : "grunt"
private String switches = "--no-color"
private String workDir = "web-app"
String gruntArgs = ""
public GruntTask() {
super()
this.setExecutable(gruntExecutable)
this.workingDir(workDir)
}
public void setGruntArgs(String gruntArgs) {
this.args = "$switches $gruntArgs".trim().split(" ") as List
}
}
/*
WAR creation
*/
task war(type: GrailsTask) {
command "war"
env "prod"
}
가 나를 도울 수 거기 누구인가? 나는 위아래로 인터넷을 검색하지만 ... 아무도 하나가 Grails
, Ember.js
, Gradle
, IntelliJ IDEA
의 조합을 사용하지 않거나 모든 죽은 간단하고 난 그냥 도구를 사용하여 바보에있어 것을
감사합니다. IntelliJ에서 이슈 추적기를 검색하고 유용한 정보가 있는지 확인하십시오. 그렇지 않은 경우 버그를 게시하십시오. 나는 Grails와 함께 마법보다 더 많은 문제를 (불행히도) 주었기 때문에 내가 Gradle 전체를 재고해야한다고 생각한다 .... – herom