compileClasspath をログに記録しようとしましたが、空のセットです (allprojects のビルド タスクがログを作成することに注意してください)。依存関係に入れているすべてをログに記録しないのはなぜですか? (私の本当の問題はコンパイルが私のサブプロジェクトの私のjarファイルを見つけていないので、ここで私のgradleの問題を釣り上げる/デバッグする方法を学ぼうとしています)。
ビルドが次の行を出力することに注意してください...配列に要素がありません:(
マスター: 私は今構築しています classpath=[]
allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
buildDir = 'output'
task hello << { task -> println "I'm $task.project.name" }
build << { task -> println "MASTER: I'm building now classpath=$sourceSets.main.compileClasspath.files" }
}
subprojects {
version = 'Developer-Build'
project.ext.genLibDir = file('lib')
project.ext.fixedLibDir = file('libother')
repositories {
mavenCentral()
}
//configurations.compile {
// exclude group: 'javax.jms', module: 'jms'
// exclude group: 'com.sun.jdmk', module: 'jmxtools'
// exclude group: 'com.sun.jmx', module: 'jmxri'
//}
dependencies {
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '4.1.4.Final'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.6.6'
compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.6.6'
compile group: 'ch.qos.logback', name: 'logback-core', version: '1.0.6'
compile group: 'joda-time', name: 'joda-time', version: '2.1'
compile group: 'com.google.inject',name: 'guice', version: '3.0'
compile group: 'com.google.protobuf',name: 'protobuf-java', version: '2.4.1'
//to be erased soon
compile group: 'commons-configuration',name:'commons-configuration',version: '1.8'
compile group: 'org.jboss.netty', name: 'netty', version: '3.2.7.Final'
//compile group: 'org.asteriskjava',name: 'asterisk-java', version: '1.0.0.M3'
compile fileTree(dir: project.ext.fixedLibDir, include: '*.jar')
compile fileTree(dir: 'webserver/play-1.2.4/framework/lib', include: '*.jar')
compile fileTree(dir: 'webserver/play-1.2.4/framework', include: '*.jar')
}