-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce binary compatibility plugin (#1774)
* Introduce binary compatibility plugin * Update diffs
- Loading branch information
1 parent
38270a3
commit 7bfab09
Showing
23 changed files
with
7,642 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: CI | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
apiCheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- run: ./gradlew apiCheck --stacktrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: "Validate Gradle Wrapper" | ||
on: pull_request | ||
|
||
jobs: | ||
validation: | ||
name: "Validation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: gradle/wrapper-validation-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.jetbrains | ||
|
||
import kotlinx.validation.ApiValidationExtension | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.configure | ||
|
||
internal object BinaryCompatibilityConfig { | ||
val ignoredPublications = setOf("kotlinAnalysisIntelliJ", "kotlinAnalysis", "kotlinAnalysisCompiler") | ||
val ignoredSubprojects = setOf( | ||
"search-component", | ||
"compiler-dependency", | ||
"intellij-dependency", | ||
"kotlin-analysis", | ||
"frontend" | ||
) | ||
} | ||
|
||
internal fun Project.registerBinaryCompatibilityCheck(publicationName: String) { | ||
publicationName.takeIf { | ||
it !in BinaryCompatibilityConfig.ignoredPublications | ||
}?.let { | ||
if (tasks.findByName("apiBuild") == null) { | ||
plugins.apply(kotlinx.validation.BinaryCompatibilityValidatorPlugin::class.java) | ||
configure<ApiValidationExtension> { | ||
ignoredProjects.addAll( | ||
BinaryCompatibilityConfig.ignoredSubprojects.intersect(allprojects.map { it.name }) | ||
) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
core/content-matcher-test-utils/api/content-matcher-test-utils.api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
public final class matchers/content/ContentMatcherBuilder { | ||
public fun <init> (Lkotlin/reflect/KClass;)V | ||
public final fun build ()Lorg/jetbrains/dokka/test/tools/matchers/content/CompositeMatcher; | ||
public final fun unaryPlus (Ljava/lang/String;)V | ||
} | ||
|
||
public abstract interface annotation class matchers/content/ContentMatchersDsl : java/lang/annotation/Annotation { | ||
} | ||
|
||
public final class matchers/content/ContentMatchersDslKt { | ||
public static final fun after (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun assertNode (Lorg/jetbrains/dokka/pages/ContentNode;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun before (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun br (Lmatchers/content/ContentMatcherBuilder;)V | ||
public static final fun caption (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun check (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun divergent (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun divergentGroup (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun divergentInstance (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun group (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun hasExactText (Lmatchers/content/ContentMatcherBuilder;Ljava/lang/String;)V | ||
public static final fun header (Lmatchers/content/ContentMatcherBuilder;Ljava/lang/Integer;Lkotlin/jvm/functions/Function1;)V | ||
public static synthetic fun header$default (Lmatchers/content/ContentMatcherBuilder;Ljava/lang/Integer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V | ||
public static final fun link (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun list (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun p (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun platformHinted (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun skipAllNotMatching (Lmatchers/content/ContentMatcherBuilder;)V | ||
public static final fun somewhere (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
public static final fun table (Lmatchers/content/ContentMatcherBuilder;Lkotlin/jvm/functions/Function1;)V | ||
} | ||
|
||
public final class org/jetbrains/dokka/test/tools/matchers/content/Anything : org/jetbrains/dokka/test/tools/matchers/content/MatcherElement { | ||
public static final field INSTANCE Lorg/jetbrains/dokka/test/tools/matchers/content/Anything; | ||
} | ||
|
||
public final class org/jetbrains/dokka/test/tools/matchers/content/CompositeMatcher : org/jetbrains/dokka/test/tools/matchers/content/NodeMatcher { | ||
public fun <init> (Lkotlin/reflect/KClass;Ljava/util/List;Lkotlin/jvm/functions/Function1;)V | ||
public synthetic fun <init> (Lkotlin/reflect/KClass;Ljava/util/List;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public fun tryMatch (Lorg/jetbrains/dokka/pages/ContentNode;)V | ||
} | ||
|
||
public abstract class org/jetbrains/dokka/test/tools/matchers/content/MatcherElement { | ||
} | ||
|
||
public final class org/jetbrains/dokka/test/tools/matchers/content/MatcherError : java/lang/AssertionError { | ||
public fun <init> (Ljava/lang/String;Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement;ZLjava/lang/Throwable;)V | ||
public synthetic fun <init> (Ljava/lang/String;Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement;ZLjava/lang/Throwable;ILkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public final fun component1 ()Ljava/lang/String; | ||
public final fun component2 ()Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement; | ||
public final fun component3 ()Z | ||
public final fun component4 ()Ljava/lang/Throwable; | ||
public final fun copy (Ljava/lang/String;Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement;ZLjava/lang/Throwable;)Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherError; | ||
public static synthetic fun copy$default (Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherError;Ljava/lang/String;Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement;ZLjava/lang/Throwable;ILjava/lang/Object;)Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherError; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getAnchor ()Lorg/jetbrains/dokka/test/tools/matchers/content/MatcherElement; | ||
public final fun getAnchorAfter ()Z | ||
public fun getCause ()Ljava/lang/Throwable; | ||
public fun getMessage ()Ljava/lang/String; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public class org/jetbrains/dokka/test/tools/matchers/content/NodeMatcher : org/jetbrains/dokka/test/tools/matchers/content/MatcherElement { | ||
public fun <init> (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function1;)V | ||
public synthetic fun <init> (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public final fun getAssertions ()Lkotlin/jvm/functions/Function1; | ||
public final fun getKclass ()Lkotlin/reflect/KClass; | ||
public fun tryMatch (Lorg/jetbrains/dokka/pages/ContentNode;)V | ||
} | ||
|
||
public final class org/jetbrains/dokka/test/tools/matchers/content/TextMatcher : org/jetbrains/dokka/test/tools/matchers/content/MatcherElement { | ||
public fun <init> (Ljava/lang/String;)V | ||
public final fun getText ()Ljava/lang/String; | ||
} | ||
|
Oops, something went wrong.