-
Notifications
You must be signed in to change notification settings - Fork 272
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
Fixed #1799 by creating a separate intellijPlatformComposedJarApi (extends api & compileOnlyApi) configuration with JAVA_API usage attribute value. Also replaced java plugin by java-library plugin, because it is a more proper plugin for IntelliJ plugin projects (they are libraries). #1800
Conversation
be79bce
to
d1c8ef8
Compare
@@ -59,8 +101,13 @@ abstract class IntelliJPlatformModulePlugin : Plugin<Project> { | |||
isCanBeConsumed = true | |||
isCanBeResolved = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to make it only consumable, but the tests then fail, because there is code which tries to resolve it. It should not be true + true, such config is deprecated.
// you should always determine the right values for those flags, or you might accidentally introduce | ||
// resolution errors. | ||
isCanBeConsumed = true | ||
isCanBeResolved = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it consumable instead of true + true like INTELLIJ_PLATFORM_COMPOSED_JAR below.
Tests failed because master is broken. |
@@ -64,7 +71,8 @@ abstract class ComposedJarTask : Jar() { | |||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | |||
JarCompanion.applyPluginManifest(this) | |||
|
|||
project.artifacts.add(intellijPlatformComposedJarConfiguration.name, this) | |||
intellijPlatformComposedJarConfiguration.outgoing.artifact(this) | |||
intellijPlatformComposedJarApiConfiguration.outgoing.artifact(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that
Line 82 in 4633113
project.artifacts.add(runtimeElementsConfiguration.name, archiveFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be related #1802
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably related, yes.
d1c8ef8
to
6e65346
Compare
Tests failed due to |
…arApi (extends api & compileOnlyApi) configuration with JAVA_API usage attribute value. Also replaced java plugin by java-library plugin, because it is a more proper plugin for IntelliJ plugin projects (they are libraries).
6e65346
to
5525c31
Compare
Pull Request Details
Fixed #1799 by creating a separate intellijPlatformComposedJarApi (extends api & compileOnlyApi) configuration with JAVA_API usage attribute value. Also replaced java plugin by java-library plugin, because it is a more proper plugin for IntelliJ plugin projects (they are libraries).
This PR includes #1792, because it is not merged yet, which I need to fix tests, since master is broken right now
The actual fix for this issue can be seen in d1c8ef8
Description
☝️ + see #1799
These changes create a new outgoing variant:
Here is proof that it works (notice the fake build number, it is from my local maven, also kotlin plugin is commented out):
Now
org.jetbrains:annotations:26.0.1
is available andorg.apache.commons:commons-lang3:3.5
is not, like it should be.Related Issue
#1799
Motivation and Context
It was broken.
How Has This Been Tested
So far only manually.
Types of changes
Checklist