Skip to content

Commit 5cadd3c

Browse files
authoredOct 7, 2022
Merge pull request #10712 from smowton/smowton/admin/kotlin-allow-single-embeddable-version
Kotlin: allow building a single embeddable plugin version
2 parents bb0f2f7 + 9c0cdfd commit 5cadd3c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎java/kotlin-extractor/build.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def parse_args():
2525
dest='many', help='Build for a single version/kind')
2626
parser.add_argument('--single-version',
2727
help='Build for a specific version/kind')
28+
parser.add_argument('--single-version-embeddable', action='store_true',
29+
help='When building a single version, build an embeddable extractor (default is standalone)')
2830
return parser.parse_args()
2931

3032

@@ -235,7 +237,13 @@ def compile_standalone(version):
235237

236238

237239
if args.single_version:
238-
compile_standalone(args.single_version)
240+
if args.single_version_embeddable == True:
241+
compile_embeddable(args.single_version)
242+
else:
243+
compile_standalone(args.single_version)
244+
elif args.single_version_embeddable == True:
245+
print("--single-version-embeddable requires --single-version", file=sys.stderr)
246+
sys.exit(1)
239247
elif args.many:
240248
for version in kotlin_plugin_versions.many_versions:
241249
compile_standalone(version)

0 commit comments

Comments
 (0)