Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Apr 18, 2024
1 parent 25e9d4b commit 8610089
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.sourcegraph.scip_java.BuildInfo
import org.gradle.api.DefaultTask
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.component.ModuleComponentIdentifier
import org.gradle.api.provider.Property
import org.gradle.api.publish.PublishingExtension
Expand All @@ -19,8 +20,6 @@ import org.gradle.api.tasks.SourceSetContainer
import org.gradle.api.tasks.TaskAction
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.scala.ScalaCompile
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.dsl.DependencyHandler

class SemanticdbGradlePlugin extends Plugin[Project] {
import Logging._
Expand Down Expand Up @@ -80,17 +79,17 @@ class SemanticdbGradlePlugin extends Plugin[Project] {

val compilerPluginAdded =
try {
project.getDependencies().add("compileOnly", javacPluginDep)
project.getDependencies().add("compileOnly", javacPluginDep)

if (hasAnnotationPath) {
project
.getDependencies()
.add("annotationProcessor", javacPluginDep)
}
if (hasAnnotationPath) {
project
.getDependencies()
.add("annotationProcessor", javacPluginDep)
}

project.getDependencies().add("testCompileOnly", javacPluginDep)
project.getDependencies().add("testCompileOnly", javacPluginDep)

true
true
} catch {
case exc: Exception =>
// If the `compileOnly` configuration has already been evaluated
Expand Down

0 comments on commit 8610089

Please sign in to comment.