aboutsummaryrefslogtreecommitdiff
path: root/compatibility/BuildInterface.java
blob: 0428721a21ec321b03e5cc740098c9cd59d20ec8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package cbt;
import java.io.*;

public interface BuildInterface extends Dependency{
  // needed to propagage through build builds. Maybe we can get rid of this.
  public default BuildInterface finalBuild(File current){
    return finalBuild(); // legacy forwarder
  }
  @Deprecated
  public default File[] triggerLoopFilesArray(){
    return new File[0];
  };

  // deprecated methods, which clients are still allowed to implement, but not required
  public default BuildInterface finalBuild(){
    throw new IncompatibleCbtVersionException("You need to override this method.");
  }; // needed to propagage through build builds. Maybe we can get rid of this.
  public abstract BuildInterface copy(Context context);
  public abstract String scalaVersion();
  public abstract String[] crossScalaVersionsArray();
}