[ https://issues.apache.org/jira/browse/SAMZA-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13975403#comment-13975403 ]
Steven Yates commented on SAMZA-95: ----------------------------------- Did you apply SAMZA-95-4.diff Chris? > ./gradlew clean projectReport produces {code} Steves-PC:incubator-samza stevenyates$ ./gradlew clean projectReport The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead. :samza-api:clean :samza-core_2.10:clean UP-TO-DATE :samza-kafka_2.10:clean UP-TO-DATE :samza-kv_2.10:clean UP-TO-DATE :samza-serializers_2.10:clean UP-TO-DATE :samza-shell:clean UP-TO-DATE :samza-test_2.10:clean UP-TO-DATE :samza-yarn_2.10:clean UP-TO-DATE :dependencyReport :propertyReport :taskReport :projectReport :samza-api:dependencyReport :samza-api:propertyReport :samza-api:taskReport :samza-api:projectReport :samza-core_2.10:dependencyReport :samza-core_2.10:propertyReport :samza-core_2.10:taskReport :samza-core_2.10:projectReport :samza-kafka_2.10:dependencyReport :samza-kafka_2.10:propertyReport :samza-kafka_2.10:taskReport :samza-kafka_2.10:projectReport :samza-kv_2.10:dependencyReport :samza-kv_2.10:propertyReport :samza-kv_2.10:taskReport :samza-kv_2.10:projectReport :samza-serializers_2.10:dependencyReport :samza-serializers_2.10:propertyReport :samza-serializers_2.10:taskReport :samza-serializers_2.10:projectReport :samza-shell:dependencyReport :samza-shell:propertyReport :samza-shell:taskReport :samza-shell:projectReport :samza-test_2.10:dependencyReport :samza-test_2.10:propertyReport :samza-test_2.10:taskReport :samza-test_2.10:projectReport :samza-yarn_2.10:dependencyReport :samza-yarn_2.10:propertyReport :samza-yarn_2.10:taskReport :samza-yarn_2.10:projectReport BUILD SUCCESSFUL Total time: 28.559 secs {code} with {code} buildscript { repositories { mavenCentral() } apply from: file('gradle/buildscript.gradle'), to: buildscript } allprojects { repositories { // Required for Kafka. maven { url 'https://repository.apache.org/content/groups/public' } mavenCentral() mavenLocal() } } apply from: file('gradle/license.gradle') apply from: file('gradle/environment.gradle') apply from: file("gradle/dependency-versions.gradle") apply from: file("gradle/dependency-versions-scala-" + scalaVersion + ".gradle") allprojects { apply plugin: 'idea' apply plugin: 'project-report' // For all scala compilation, add extra compiler options, taken from version-specific // dependency-versions-scala file applied above. tasks.withType(ScalaCompile) { scalaCompileOptions.additionalParameters = [ scalaOptions ] } } subprojects { apply plugin: 'java' apply plugin: 'jacoco' apply plugin: 'eclipse' // Required for now, becaues of GRADLE-2917. dependencies { jacocoAgent "org.jacoco:org.jacoco.agent:${jacoco.toolVersion}" } //We must run test before jacocoTestReport runs jacocoTestReport { description 'Produce code coverage reports' group 'Reporting' dependsOn 'test' } } project(':samza-api') { dependencies { testCompile "junit:junit:$junitVersion" } } project(":samza-core_$scalaVersion") { apply plugin: 'scala' dependencies { compile project(':samza-api') compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion" compile "org.codehaus.jackson:jackson-jaxrs:$jacksonVersion" testCompile "junit:junit:$junitVersion" testCompile "org.mockito:mockito-all:$mockitoVersion" testCompile "org.scalatest:scalatest_$scalaVersion:$scalaTestVersion" } } project(":samza-kafka_$scalaVersion") { apply plugin: 'scala' configurations { // Remove transitive dependencies from Zookeeper that we don't want. compile.exclude group: 'javax.jms', module: 'jms' compile.exclude group: 'com.sun.jdmk', module: 'jmxtools' compile.exclude group: 'com.sun.jmx', module: 'jmxri' } dependencies { compile project(':samza-api') compile project(":samza-core_$scalaVersion") compile project(":samza-serializers_$scalaVersion") compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "com.101tec:zkclient:$zkClientVersion" compile "org.apache.zookeeper:zookeeper:$zookeeperVersion" compile "org.codehaus.jackson:jackson-jaxrs:$jacksonVersion" compile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion" testCompile "junit:junit:$junitVersion" testCompile "org.mockito:mockito-all:$mockitoVersion" // TODO replace this with an official release, if possible testCompile files("lib/kafka_$scalaVersion-0.8.1-SNAPSHOT-test.jar") // Logging in tests is good. testRuntime "org.slf4j:slf4j-simple:$slf4jVersion" } test { // Bump up the heap so we can start ZooKeeper and Kafka brokers. maxHeapSize = "2048m" } } project(":samza-serializers_$scalaVersion") { apply plugin: 'scala' dependencies { compile project(':samza-api') compile project(":samza-core_$scalaVersion") compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "org.codehaus.jackson:jackson-jaxrs:$jacksonVersion" testCompile "junit:junit:$junitVersion" } } project(":samza-yarn_$scalaVersion") { apply plugin: 'scala' dependencies { compile project(':samza-api') compile project(":samza-core_$scalaVersion") compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.scala-lang:scala-compiler:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "org.codehaus.jackson:jackson-jaxrs:$jacksonVersion" compile "commons-httpclient:commons-httpclient:$commonsHttpClientVersion" compile "org.eclipse.jetty:jetty-webapp:$jettyVersion" compile("org.apache.hadoop:hadoop-yarn-api:$yarnVersion") { exclude module: 'slf4j-log4j12' } compile("org.apache.hadoop:hadoop-yarn-common:$yarnVersion") { exclude module: 'slf4j-log4j12' } compile("org.apache.hadoop:hadoop-yarn-client:$yarnVersion") { exclude module: 'slf4j-log4j12' } compile("org.apache.hadoop:hadoop-common:$yarnVersion") { exclude module: 'slf4j-log4j12' exclude module: 'servlet-api' exclude module: 'jetty' exclude module: 'jetty-util' } compile("org.scalatra:scalatra_$scalaVersion:$scalatraVersion") { exclude module: 'scala-compiler' exclude module: 'slf4j-api' } compile("org.scalatra:scalatra-scalate_$scalaVersion:$scalatraVersion") { exclude module: 'scala-compiler' exclude module: 'slf4j-api' } testCompile "junit:junit:$junitVersion" testCompile "org.mockito:mockito-all:$mockitoVersion" } repositories { maven { url "http://repo.typesafe.com/typesafe/releases" } } } project(":samza-shell") { configurations { gradleShell } dependencies { gradleShell project(":samza-core_$scalaVersion") gradleShell project(":samza-kafka_$scalaVersion") gradleShell project(":samza-yarn_$scalaVersion") gradleShell "org.slf4j:slf4j-simple:$slf4jVersion" } task shellTarGz(type: Tar) { compression = Compression.GZIP classifier = 'dist' from 'src/main/bash' } // Usage: ./gradlew samza-shell:runJob \ // -PconfigPath=file:///path/to/job/config.properties task runJob(type:JavaExec) { main = 'org.apache.samza.job.JobRunner' classpath = configurations.gradleShell if (project.hasProperty('configPath')) args += ['--config-path', configPath] } // Usage: ./gradlew samza-shell:checkpointTool \ // -PconfigPath=file:///path/to/job/config.properties -PnewOffsets=file:///path/to/new/offsets.properties task checkpointTool(type:JavaExec) { main = 'org.apache.samza.checkpoint.CheckpointTool' classpath = configurations.gradleShell if (project.hasProperty('configPath')) args += ['--config-path', configPath] if (project.hasProperty('newOffsets')) args += ['--new-offsets', newOffsets] } } project(":samza-kv_$scalaVersion") { apply plugin: 'scala' dependencies { compile project(':samza-api') compile project(":samza-core_$scalaVersion") compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "org.fusesource.leveldbjni:leveldbjni-all:$leveldbVersion" testCompile "junit:junit:$junitVersion" // Depend on samza-core's test classes so TestUtils can be used. testCompile project(":samza-core_$scalaVersion").sourceSets.test.output } } project(":samza-test_$scalaVersion") { apply plugin: 'scala' configurations { // Remove transitive dependencies from Zookeeper that we don't want. compile.exclude group: 'javax.jms', module: 'jms' compile.exclude group: 'com.sun.jdmk', module: 'jmxtools' compile.exclude group: 'com.sun.jmx', module: 'jmxri' } dependencies { compile project(':samza-api') compile project(":samza-kv_$scalaVersion") compile project(":samza-core_$scalaVersion") compile "org.scala-lang:scala-library:$scalaLibVersion" compile "org.clapper:grizzled-slf4j_$scalaVersion:$grizzledVersion" compile "net.sf.jopt-simple:jopt-simple:$joptSimpleVersion" compile "javax.mail:mail:1.4" compile "junit:junit:$junitVersion" compile "org.apache.kafka:kafka_$scalaVersion:$kafkaVersion" // TODO replace this with an official release, if possible testCompile files("../samza-kafka/lib/kafka_$scalaVersion-0.8.1-SNAPSHOT-test.jar") testCompile "com.101tec:zkclient:$zkClientVersion" testCompile project(":samza-kafka_$scalaVersion") testRuntime "org.slf4j:slf4j-simple:$slf4jVersion" } test { // Bump up the heap so we can start ZooKeeper and Kafka brokers. Also // required for TestSamzaContainerPerformance when a high thread count // with a lot of inputs is used. maxHeapSize = "4096m" // Forward all samza.* system properties to test subprocesses. This is // useful for configuring TestSamzaContainerPerformance from the CLI. systemProperties = System.properties.findAll { it.key.startsWith("samza") } } } {code} > Gradle projectReport fails with jacocoTestReport issue > ------------------------------------------------------ > > Key: SAMZA-95 > URL: https://issues.apache.org/jira/browse/SAMZA-95 > Project: Samza > Issue Type: Bug > Components: build > Reporter: Jakob Homan > Assignee: Steve Yates > Priority: Minor > Fix For: 0.7.0 > > Attachments: SAMZA-95-3.diff, SAMZA-95-4.diff, SAMZA-95.diff, > SAMZA-95.diff > > > {noformat}[jhoman@jhoman-ld samza]$ ./gradlew projectReport > The TaskContainer.add() method has been deprecated and is scheduled to be > removed in Gradle 2.0. Please use the create() method instead. > :samza-api:dependencyReport UP-TO-DATE > :samza-api:propertyReport UP-TO-DATE > :samza-api:taskReport > :samza-api:projectReport > :samza-core_2.9.2:dependencyReport > :samza-core_2.9.2:propertyReport > :samza-core_2.9.2:taskReport FAILED > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':samza-core_2.9.2:taskReport'. > > Could not determine the dependencies of task > > ':samza-core_2.9.2:jacocoTestReport'. > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. > BUILD FAILED{noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)