pefernan commented on code in PR #2244: URL: https://github.com/apache/incubator-kie-kogito-apps/pull/2244#discussion_r2226629657
########## data-index/data-index-springboot/data-index-graphql-addons-springboot/src/main/java/org/kie/kogito/index/springboot/addon/graphql/DataIndexGraphQLSpringBootSharedConfiguration.java: ########## @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.kie.kogito.index.springboot.addon.graphql; + +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.PropertySource; +import org.springframework.util.ResourceUtils; + +@SpringBootApplication +@PropertySource(ResourceUtils.CLASSPATH_URL_PREFIX + "/data-index-graphql.properties") Review Comment: @elguardian @martinweiler this is a trick to add the data-index grapqhl's available for the spring-graphql validation. It validates if there are graphql files in some locations in classloader. The problem is that the default location of the .graphql's in Spring Boot is in `classpath:graphqls`, our grapqhl's are located in the root of the classpath (`classpath:/`) with this trick I can override the default configuration. I'd prefer moving the grapqhl files to the graphqls folder so we don't need this, wdyt? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
