File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,9 @@ def kt_jvm_library_impl(ctx):
223223
224224def kt_jvm_binary_impl (ctx ):
225225 providers = _kt_jvm_produce_jar_actions (ctx , "kt_jvm_binary" )
226- jvm_flags = ctx .fragments .java .default_jvm_opts
226+ jvm_flags = []
227+ if hasattr (ctx .fragments .java , "default_jvm_opts" ):
228+ jvm_flags = ctx .fragments .java .default_jvm_opts
227229 jvm_flags .extend (ctx .attr .jvm_flags )
228230 _write_launcher_action (
229231 ctx ,
@@ -275,7 +277,9 @@ def kt_jvm_junit_test_impl(ctx):
275277 test_class = elements [1 ].split ("." )[0 ].replace ("/" , "." )
276278 break
277279
278- jvm_flags = ctx .fragments .java .default_jvm_opts
280+ jvm_flags = []
281+ if hasattr (ctx .fragments .java , "default_jvm_opts" ):
282+ jvm_flags = ctx .fragments .java .default_jvm_opts
279283 jvm_flags .extend (ctx .attr .jvm_flags )
280284 coverage_metadata = _write_launcher_action (
281285 ctx ,
You can’t perform that action at this time.
0 commit comments