-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish instrumented and composed artifact with variants instead of r…
…eplacing the default artifact
- Loading branch information
Showing
7 changed files
with
64 additions
and
21 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
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
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
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/org/jetbrains/intellij/platform/gradle/attributes/ComposedJarRule.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,17 @@ | ||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
|
||
package org.jetbrains.intellij.platform.gradle.attributes | ||
|
||
import org.gradle.api.attributes.AttributeCompatibilityRule | ||
import org.gradle.api.attributes.CompatibilityCheckDetails | ||
import org.gradle.api.attributes.LibraryElements | ||
import org.jetbrains.intellij.platform.gradle.Constants.Configurations.Attributes | ||
|
||
abstract class ComposedJarRule : AttributeCompatibilityRule<LibraryElements> { | ||
|
||
override fun execute(details: CompatibilityCheckDetails<LibraryElements>) = details.run { | ||
if (consumerValue?.name == Attributes.COMPOSED_JAR_NAME && producerValue?.name == "jar") { | ||
compatible() | ||
} | ||
} | ||
} |
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
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
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