Gradle 1.6에서 2.1로 마이그레이션 할 때 POC 작업을하고 있습니다 (기본적으로이 문제를 해결하려면 Gradle build/test failed - kryo.KryoException: Buffer overflow).Gradle - Gradle 2.1의 컴파일 문제
나는 "Gradle을 정리 빌드를"실행 해요 때 Gradle을가 성공적으로 Gradle을 Gradle을 2.1
1.6으로 작품을 구축, 나는 다음과 같은 오류 메시지를 받고 있어요.
FAILURE: Build failed with an exception.
* Where:
Initialization script '/production/gradle-2.1/init.d/extra1.common-thids.gradle' line: 19
* What went wrong:
Could not find property 'Compile' on root project 'Infrastructure'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
및
:findbugsMain FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':findbugsMain'.
> The version of FindBugs (3.0.0) inferred from FindBugs classpath is too high to work with currently used Java version (1.6). Please use lower version of FindBugs or use newer version of Java. Inspected FindBugs classpath: [findbugs-3.0.0.jar, bcel-findbugs-6.0.jar, annotations-3.0.0.jar, jFormatString-3.0.0.jar, dom4j-1.6.1.jar, jaxen-1.1.6.jar, asm-debug-all-5.0.2.jar, commons-lang-2.6.jar, xml-apis-1.0.b2.jar]
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
글로벌 수준있는 init.d/extra1 ... 일반 Gradle을 파일 행은 다음과 같습니다 나는 저장소 설정 및 기타 전역 설정에 대한 (동일한있는 init.d 파일을 사용하는 것 findbugs, pmd, java 등의 플러그인을 적용한 Gradle 1.6과 함께 사용했습니다.) jacoco가 코드 커버리지를 생성 할 수 있도록 디버그를 true로 설정했습니다. 어떤 아이디어, 어떻게하면 Gradle 2.1에서 true로 옵션 디버그를 설정할 수 있습니까?
findbugs 문제에 대한, 나는 (이 핵심 프로젝트의 아티팩트가 JAVA JDK 1.6에 여전히 다른 프로젝트에 의해 소비 될 때이 시점에서) 1.6에서 1.7.0 40 JAVA/JDK 버전을 업그레이드하지 않습니다 . 감사.
18
19 tasks.withType(Compile) {
20 options.debug = true
21 options.compilerArgs = ["-g"]
22 }
23
Groovy의 경우 GroovyCompile은 무엇입니까? –
예 ([Gradle Build Language Reference] (http://gradle.org/docs/current/dsl/index.html) 또는 [Gradle 사용자 가이드] (http://gradle.org/docs/current/userguide /userguide_single.html)). –