Build Server Protocol

Build Server Protocol

  • Specification
  • GitHub

›Extensions

Overview

  • Specification
  • Implementations
  • Build Server Discovery
  • Frequently Asked Questions

Extensions

  • JVM
  • Scala
  • sbt
  • Java
  • Maven

Bindings

  • Java
Edit

Java Extension

The following section contains Java-specific extensions to the build server protocol.

Javac Options Request

The build target scalac options request is sent from the client to the server to query for the list of compiler options necessary to compile in a given list of targets.

  • method: buildTarget/javacOptions
  • params: JavacOptionsParams
export interface JavacOptionsParams {
  targets: BuildTargetIdentifier[];
}

Response:

  • result: JavacOptionsResult, defined as follows
export interface JavacOptionsResult {
  items: List[JavacOptionsItem];
}

export interface JavacOptionsItem {
  target: BuildTargetIdentifier;

  /** Additional arguments to the compiler.
   * For example, -deprecation. */
  options: List[String];

  /** The dependency classpath for this target, must be
   * identical to what is passed as arguments to
   * the -classpath flag in the command line interface
   * of javac. */
  classpath: List[Uri];

  /** The output directory for classfiles produced by this target */
  classDirectory: Uri;
}
← sbtMaven →
  • Javac Options Request
Build Server Protocol
Overview
SpecificationImplementations
Social
Copyright © 2022 Build Server Protocol

The Build Server Protocol is a collaborative effort between developers at the Scala Center and Jetbrains.