clara

http://www.clara-rules.org/
eraserhd 2019-04-03T18:34:38.000600Z

can we cut a release? I think the :exists performance is blocking us right now (still running tests, tho).

defndaines 2019-04-03T20:53:10.004700Z

I wanted to test the SNAPSHOT and realized I have to install an older JDK to compile the project. In particular, :javac-options ["-target" "1.6" "-source" "1.6"] is no longer supported. Does anyone know that best version to build with? (It isn’t enough to just change those to “1.8” … that brings up a ClassNotFoundException: javax.xml.bind.DatatypeConverter issue, which I think is JDK11 [LTS] and higher.)

eraserhd 2019-04-03T21:18:44.005500Z

On mac, I do JAVA_HOME=$(/usr/libexec/java_home -v 1.8) lein install or what not.

eraserhd 2019-04-03T21:19:06.005800Z

That just worked for me today.

eraserhd 2019-04-03T21:19:35.006200Z

The target options are only about bytecode, iirc.

2019-04-03T21:42:48.006500Z

The xml thing is common in libs that haven’t upgrade some deps yet

2019-04-03T21:43:02.006900Z

Clara has some lower version deps right now, it should be changed with some better profiles I think

2019-04-03T21:43:12.007200Z

but you can work around the jdk11 things I think with just adding to the module path

2019-04-03T21:43:56.007500Z

in :jvm-opts add "--add-modules java.xml.bind"

2019-04-03T21:44:11.007900Z

can do that in your ~/.lein/profiles.clj or just alter Clara’s project

2019-04-03T21:44:34.008200Z

oh, there is already a profile for this in clara

2019-04-03T21:44:50.008500Z

lein with-profile java9 install

2019-04-03T21:45:09.008900Z

you can build with a bit higher cljs/clj too with a profile built-in

2019-04-03T21:45:24.009200Z

lein with-profile java9,recent-clj install

2019-04-03T21:45:45.009700Z

However, the java9 is slightly misleading, I think it should work with jdk11 too (pending any not testing jdk11 issues with clara or lib it uses)

2019-04-03T21:46:00.010Z

I do not see this though :javac-options ["-target" "1.6" "-source" "1.6"] and that doesn’t seem ideal to me

2019-04-03T21:46:18.010300Z

I think Clara should remove that, maybe a good PR…

2019-04-03T21:47:55.011300Z

maybe just do this: lein update-in : assoc :javac-opts "^:replace []" -- with-profile java9, recent-clj install - hah, quite rough

2019-04-03T21:50:04.013100Z

@eraserhd Regarding cutting a release in the near future, that seems reasonable to me - any objections anyone? Probably 0.19.1 looking at the changelog.

👍 2
2019-04-03T21:50:08.013300Z

We likely need to make a profile to build for more modern things and make that the default dev setup. Can have separate install/deploy configuration and testing

👍 1
2019-04-03T21:51:38.013800Z

@wparker release seems fine to me based on what I see

2019-04-03T21:51:42.014Z

and minor version seems acceptable - nothing in there should be breaking or considered a “feature add”

ethanc 2019-04-03T22:11:49.014500Z

Agreed