You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ge...@apache.org on 2023/08/09 14:35:06 UTC

[solr] branch main updated: SOLR-16825: Speed up OAS generation

This is an automated email from the ASF dual-hosted git repository.

gerlowskija pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 4fca9ecb500 SOLR-16825: Speed up OAS generation
4fca9ecb500 is described below

commit 4fca9ecb500bd1fdcfa55f180f075686dab829ce
Author: Jason Gerlowski <ge...@apache.org>
AuthorDate: Wed Aug 9 10:14:45 2023 -0400

    SOLR-16825: Speed up OAS generation
    
    Prior to this commit, OAS generation (the ':solr:api:resolve' task)
    scanned all classpath packages for JAX-RS annotations.  This commit
    speeds up the task significantly by restricting its operation to only a
    few relevant packages in the 'api' module.
---
 solr/api/build.gradle | 1 +
 1 file changed, 1 insertion(+)

diff --git a/solr/api/build.gradle b/solr/api/build.gradle
index f61977993af..8e50d634485 100644
--- a/solr/api/build.gradle
+++ b/solr/api/build.gradle
@@ -37,6 +37,7 @@ configurations {
 
 resolve {
   classpath = sourceSets.main.runtimeClasspath
+  resourcePackages = ["org.apache.solr.client.api.util", "org.apache.solr.client.api.endpoint"]
   outputDir = file(project.openApiSpecDir)
   prettyPrint = true
 }