uschindler edited a comment on issue #1242: LUCENE-9201: Port 
documentation-lint task to Gradle build
URL: https://github.com/apache/lucene-solr/pull/1242#issuecomment-583751044
 
 
   The task should just be defined for each sourceSet. Then tests and compile 
works automatically. Grafles will automatically add 2 tasks (one for each 
sourceSet): ecjLintMain and ecjLintTest (if you call it ecjLint base name). To 
set this up ask Gradle for current sourceSets and generate a task with 
automatic name based on SourceSet name. Classpath is provided gratis.
   
   See e.g Gradle internal tasks or forbiddenapis source code how those tasks 
should be declared. This easy seen here is not in line with the model behind 
Gradle (you define tasks per sourceSet, so it's extensible, e.g. if we add new 
sourceSets when building multi-release jars for some modules).
   
   sourceSet by the way also has source target and/or release version.
   Thi

----------------------------------------------------------------
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


With regards,
Apache Git Services

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

Reply via email to