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/18 15:45:17 UTC

[solr] 02/02: SOLR-16825: Speed up OAS generation

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

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

commit 6fcf91d535990d99b0e587c74163a91d43d2526b
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
 }