rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

Parameter 'output_jar' is deprecated and will be removed soon

Open Nikolas-LFDesigns opened this issue 3 years ago • 2 comments

I have the following error on rules_kotlin 1.5.0 alpha 1 and higher:

in kt_jvm_library rule [this is my rule for library]: 
Traceback (most recent call last):
	File "[...]/e810e7b62577a3b59b8845a708b42f0a/external/io_bazel_rules_kotlin/kotlin/internal/jvm/impl.bzl", line 165, column 36, in kt_jvm_library_impl
		_kt_jvm_produce_jar_actions(ctx, "kt_jvm_library") if ctx.attr.srcs else export_only_providers(
	File "[...]/e810e7b62577a3b59b8845a708b42f0a/external/io_bazel_rules_kotlin/kotlin/internal/jvm/compile.bzl", line 592, column 42, in kt_jvm_produce_jar_actions
		source_jar = java_common.pack_sources(
Error in pack_sources: in call to pack_sources(), parameter 'output_jar' is deprecated and will be removed soon. It may be temporarily re-enabled by setting --incompatible_java_common_parameters=false

Environment: Bazel: 3.7.0 linux OS: Ubuntu 20.04

Is it possible that the project is really using deprecated API, or is it something on my side that I didn't count in when building?

Nikolas-LFDesigns avatar Jan 11 '21 11:01 Nikolas-LFDesigns

Probably deprecated. I'll take a look.

restingbull avatar Jan 13 '21 16:01 restingbull

@restingbull any updates here?

Nikolas-LFDesigns avatar Feb 01 '21 13:02 Nikolas-LFDesigns