8000 Update dependencies and improve build tool testing infrastructure, add JDK 21 by keynmol · Pull Request #692 · sourcegraph/scip-java · GitHub
[go: up one dir, main page]

Skip to content

Update dependencies and improve build tool testing infrastructure, ad 10000 d JDK 21 #692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 18, 2024
Prev Previous commit
Next Next commit
scalafmt
  • Loading branch information
keynmol committed Apr 18, 2024
commit 8610089bda140942ebd80394fc254cb55a2a1ff3
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