Ceylon 1.3.1이 출시되었습니다. 새 항목 중 하나가 Java 프로젝트/라이브러리와의 통합이 더 잘되었습니다. Ceylon-gradle Plugin (https://github.com/renatoathaydes/ceylon-gradle-plugin) 옆에 스핀을위한 샘플 중 하나 (https://github.com/DiegoCoronel/ceylon-spring-boot)를 가져 가기로 결정했습니다.Ceylon 예제를 Gradle로 컴파일하는 중 오류가 발생했습니다.
내가 알 수있는 한,이 프로젝트를 다중 프로젝트 Gradle 빌드로 바꾸려면 다음 구성을 사용하여 두 개의 파일을 추가해야합니다.
settings.gradle
include 'gateway'
include 'discovery'
include 'foo'
include 'bar'
include 'foobar'
build.gradle 불행하게도 오류가있는 모듈의 결과 중 하나를 구축
plugins {
id 'com.athaydes.ceylon' version '1.3.0' apply false
}
subprojects { subprj ->
subprj.apply plugin: 'com.athaydes.ceylon'
repositories {
mavenCentral()
}
ceylon {
module = subprj.name
}
}
등이 발생
$ gradle :gateway:compileCeylon
:gateway:resolveCeylonDependencies
:gateway:createDependenciesPoms
:gateway:createMavenRepo
:gateway:generateOverridesFile
:gateway:createModuleDescriptors
:gateway:importJars
:gateway:compileCeylon
source/gateway/module.ceylon:3: error: Pre-resolving of module failed: Could not find module: antlr/2.7.7
import ceylon.interop.java "1.3.0";
^
ceylon compile: There was 1 error
:gateway:compileCeylon FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':gateway:compileCeylon'.
> Ceylon process exited with code 1. See output for details.
로 같은
ceylon {
flatClasspath = false
importJars = true
forceImports = true
}
오류가 계속 발생하지만
로, Gradle을 3.2 플러그인의 설명서에 설명 된대로ceylon
구성에 추가 속성을 설정하는 시도
------------------------------------------------------------
Gradle 3.2
------------------------------------------------------------
Build time: 2016-11-14 12:32:59 UTC
Revision: 5d11ba7bc3d79aa2fbe7c30a022766f4532bbe0f
Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_112 (Oracle Corporation 25.112-b16)
OS: Mac OS X 10.10.5 x86_64
를 사용하여. 제가 누락 된 부분에 대한 조언은 크게 감사하겠습니다.
안녕을 사용합니다! 죄송합니다. 실론 1.3.1을 사용하기 위해 실론 플러그인을 아직 업데이트하지 않았습니다. 곧이 문제가 해결 될 것입니다! – Renato