dweiss commented on a change in pull request #18:
URL: https://github.com/apache/lucene/pull/18#discussion_r594143087



##########
File path: gradle/defaults-java.gradle
##########
@@ -60,3 +60,14 @@ allprojects {
     }
   }
 }
+
+configure(project(":lucene:core")) {
+  plugins.withType(JavaPlugin) {

Review comment:
       If this is MR-jar code then it'd be cleaner to create separate 
sourcesets for different jdk levels required and then apply these compiler 
options to each sourceset. This makes it possible to work with multiple 
"levels" of compatibility on the same source data.
   
   You could also (conditionally) disable compilation of these extra sourcesets 
if the compiler version is lower than the sourceset's required version... this 
would enable people to work with the code without installing all the (alpha) 
JDKs.
   
   I can take care of this if needed - let me know.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to