Skip to content

Commit

Permalink
Skip sourceroot and targetroot for in JavaTarget when semanticDbEnabl…
Browse files Browse the repository at this point in the history
…edAlternatively

Mill handles semanticdb differently and the Scala compilation is
already skipping these checks. Two checks were missing though,
for Java compilation
  • Loading branch information
lolgab authored and tgodzik committed Oct 19, 2023
1 parent 22efc78 commit 430012e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ case class JavaTarget(
def isSemanticdbEnabled: Boolean =
javac.isSemanticdbEnabled || semanticDbEnabledAlternatively

def isSourcerootDeclared: Boolean = javac.isSourcerootDeclared
def isSourcerootDeclared: Boolean =
javac.isSourcerootDeclared || semanticDbEnabledAlternatively

def isTargetrootDeclared: Boolean = javac.isTargetrootDeclared
def isTargetrootDeclared: Boolean =
javac.isTargetrootDeclared || semanticDbEnabledAlternatively

def classDirectory: String = javac.getClassDirectory()

Expand Down

0 comments on commit 430012e

Please sign in to comment.