2016-09-07 2 views
2

.. 설치된 게으름 뱅이/Gradle을 .. Gradle을 빌드를 실행하고 얻을 시도 튜토리얼에 따라 샘플 응용 프로그램 .. 만든그리폰 2.7 griffon-framework.org/tutorials/1_getting_started.html에 공식 자습서 다음 자습서

$ gradle run --info 
Starting Build 
Settings evaluated using settings file 
'C:\cygwin64\home\Rob\sample\settings.gradle'. 
Projects loaded. Root project using build file 
C:\cygwin64\home\Rob\sample\build.gradle'. 
Included projects: [root project 'sample'] 
Evaluating root project 'sample' using build file 
C:\cygwin64\home\Rob\sample\build.gradle'. 
Adding license extension 
Adding download licenses extension 
Adding license extension rule 
Adding license tasks for sourceSet licenseMain 
Adding license tasks for sourceSet licenseTest 
Applying license defaults to task: :licenseFormatMain 
Applying license defaults to task: :licenseFormatTest 
Applying license defaults to task: :licenseMain 
Applying license defaults to task: :licenseTest 
Applying defaults to download task: :downloadLicenses 
Adding license tasks for sourceSet licenseIntegrationTest 
Applying license defaults to task: :licenseIntegrationTest 
Applying license defaults to task: :licenseFormatIntegrationTest 

FAILURE: Build failed with an exception. 

* Where: 
Script 'C:\cygwin64\home\Rob\sample\gradle\integration-test.gradle' line: 20 

* What went wrong: 
A problem occurred evaluating script. 
> Could not find property 'compileOnly' on configuration container. 

이에 반대하는 것 스크립트 ..

sourceSets { 
    integrationTest { 
     if (file('src/integration-test/java').exists()) { 
      java.srcDirs file('src/integration-test/java') 
     } 
     if (file('src/integration-test/groovy').exists()) { 
      groovy.srcDirs file('src/integration-test/groovy') 
     } 
     resources.srcDir file('src/integration-test/resources') 
     compileClasspath += sourceSets.main.output 
     compileClasspath += configurations.compileOnly  <-- line 20 
     compileClasspath += configurations.testCompileOnly 
     runtimeClasspath += compileClasspath 
    } 
} 

Gradle을 정보

------------------------------------------------------------ 
Gradle 2.2.1 
------------------------------------------------------------ 

Build time: 2014-11-24 09:45:35 UTC 
Build number: none 
Revision:  6fcb59c06f43a4e6b1bcb401f7686a8601a1fb4a 

Groovy:  2.3.6 
Ant:   Apache Ant(TM) version 1.9.3 compiled on December 23 2013 
JVM:   1.7.0_79 (Oracle Corporation 24.79-b02) 
OS:   Windows 8.1 6.3 amd64 

누구나 올바른 방향으로 나를 가리키고 있습니까? 나는 Gradle과 Griffon 2.7을 처음 사용합니다. 감사합니다.

답변

2

나는 이 Gradle 2.12 (this blog post)에서 소개 된 것으로 믿습니다.

나는 "Gradle 2가 최소 지원 버전입니다."라고 말하면서도 Griffon doc 상태를 실현하지만, 이는 쓸모가있을 수 있습니다.

+2

설치된 gradle 2.12 .. 그리고 효과가있었습니다 !! 정말 고맙습니다 ! – user3914455

+1

그건 바로 마이클입니다. Gradle 2.13을 사용할 최소 버전으로 언급 한 소스 문서가 업데이트되었지만 변경 사항이 아직 게시되지 않았습니다. – aalmiray