News for hackers. Stuff that matters.
Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by pswenson on Monday February 15, 2016 @09:14AM (#11103470)
how do you do conditionals or loops in maven?
Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by lmm on Monday February 15, 2016 @10:00AM (#11103676)
You don't. If you need to run custom code in the build you have to encapsulate that as a plugin (which will be a first-class maven module in its own right, which naturally nudges you to writing unit tests, having a proper release process with semver and so on for your build step). But mostly you keep your build simple and declarative and you put any business logic in the actual code. It's wonderful.
Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by jacques_chester on Monday February 15, 2016 @03:12PM (#11105602)
> how do you do conditionals or loops in maven?

What you're asking for is Turing-complete XML.

History has shown that this is usually a mistake.

Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by dashoffset on Monday February 15, 2016 @07:32PM (#11107110)
Or maybe he's asking for a non-XML Turing-complete configuration.
Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by nirvdrum on Monday February 15, 2016 @03:24PM (#11105675)
You can use the maven polyglot plugin [1] to write your POM in something other than XML. It's fairly new, but it's there. We use it in JRuby to write our POMs in Ruby. As an example of a loop:

https://github.com/jruby/jruby/blob/8e29ae1302e7aa989b8808f7...

[1] -- https://github.com/takari/polyglot-maven

Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by iso-8859-1 on Monday February 15, 2016 @04:42PM (#11106251)
Why can't I use Java with Polyglot?
Re:Kotlin 1.0 Released: Pragmatic Language for JVM and Android by nirvdrum on Monday February 15, 2016 @05:38PM (#11106587)
I don't know much about the development of the project, simply that it exists and is usable. I'd file an issue with the project and see what comes of it.