Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ class KotlinPluginsTest : BasePluginTest() {
manifest {
attributes '$mainClassAttributeKey': 'my.MainKt'
}
relocate('kotlin.', 'shadow.kotlin.')
relocate('kotlin.', 'shadow.kotlin.') {
exclude('kotlin/kotlin.kotlin_builtins')
}

@Goooler Goooler Sep 17, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OLD: old.jar
NEW: new.jar

 JAR   │ old      │ new      │ diff
───────┼──────────┼──────────┼──────
 class │ 12.6 MiB │ 12.6 MiB │  0 B
 other │ 74.6 KiB │ 74.6 KiB │  0 B
───────┼──────────┼──────────┼──────
 total │ 12.7 MiB │ 12.7 MiB │  0 B

 CLASSES │ old   │ new   │ diff
─────────┼───────┼───────┼───────────
 classes │  3149 │  3149 │ 0 (+0 -0)
 methods │ 27835 │ 27835 │ 0 (+0 -0)
  fields │  6257 │  6257 │ 0 (+0 -0)

=================
====   JAR   ====
=================

 size     │ diff      │ path
──────────┼───────────┼────────────────────────────────────────
          │ -28.7 KiB │ - shadow/kotlin/kotlin.kotlin_builtins
 28.7 KiB │ +28.7 KiB │ + kotlin/kotlin.kotlin_builtins
      0 B │       0 B │ + kotlin/
──────────┼───────────┼────────────────────────────────────────
 28.7 KiB │       0 B │ (total)
Name nameIdentifier18 = Name.identifier("kotlin");
Intrinsics.checkNotNullExpressionValue(nameIdentifier18, "identifier(...)");
BUILT_INS_PACKAGE_NAME = nameIdentifier18;
image

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or we should suggest users exclude all builtin files by **/kotlin.kotlin_builtins instead such one.

mergeServiceFiles() // Merge and relocate service files from kotlin-reflect.
}
""".trimIndent(),
Expand Down
Loading