Skip to content

Scala plugin doesn't provide subproject as dependency #2746

@carymrobbins

Description

@carymrobbins

Context

I'm attempting to use Gradle for a Java/Scala multi-project build. Unfortunately, it appears that when having project A depend on project B, the scalaCompile task for project A is not finding the compiled classes from project B.

In my gradle.build file below, the root project depends on macros.

https://github.com/carymrobbins/intellij-haskforce/blob/44ad20c9ebb221d9367bfe768a18b15ccb23fe1a/build.gradle#L99-L102

However, the compileScala task complains that it can't find the compiled classes from macros -

https://travis-ci.org/carymrobbins/intellij-haskforce#L287

Expected Behavior

The compileScala task should be able to find its dependencies' compiled classes.

Current Behavior

The compileScala task is not able to find its dependencies' compiled classes.

Steps to Reproduce (for bugs)

% git clone https://github.com/carymrobbins/intellij-haskforce
% cd intellij-haskforce
% ./gradlew assemble

Your Environment

This happens on Mac and Linux with Gradle 4.0.1.

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