cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
432 stars 60 forks source link

Warning: Old profile syntax detected #459

Open McPringle opened 6 years ago

McPringle commented 6 years ago

Running ./kobaltw test on the latest Kobalt source from master shows the following warning message twice:

***** WARNING Old profile syntax detected for "                val debug = false", please update to "val debug by profile()"

To be a good example, the build file of Kobalt itself should not produce warnings… jm2c… ;-)

cbeust commented 6 years ago

Doesn't this log line come from the test that makes sure the old syntax is still supported?

McPringle commented 6 years ago

Thanks for the hint, @cbeust, I'll check it and if it comes from the test, maybe I'll modify the test a bit to catch the warning.

McPringle commented 6 years ago

Just catching System.out or System.err does not work because SLF4J is used for logging. But it should be possible to catch and check the warning with SLF4J Test. I'll suggest this topic for the next Hackergarten.