Skip to content

Wrong directory lookup for Java test classes #92

@bjurkovski

Description

@bjurkovski

I have a build.gradle.kts looking roughly like this:

import org.scoverage.OverallCheckTask
import com.google.protobuf.gradle.ExecutableLocator
import com.google.protobuf.gradle.ProtobufConfigurator

plugins {
  java
  scala
  id("com.google.protobuf") version "0.8.5"
}

dependencies {
    // My dependencies ...
}

val jar by tasks
jar.dependsOn("generateTestProto")


protobuf {
  protobuf(closureOf<ProtobufConfigurator> {
    // Configure location of the proto compiler
    protoc(closureOf<ExecutableLocator> {
      artifact = thirdParty.protoc
    })
  })
}

If I try to run ./gradlew :my-module:checkSCoverage, it'll fail to find the generated proto classes as tries to look for them in build/classes/java/testScoverage instead of build/classes/java/test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions