Skip to content

Commit 5bfb04b

Browse files
author
bnasslahsen
committed
qdsl-predicate rollback
1 parent 841a690 commit 5bfb04b

File tree

10 files changed

+45
-296
lines changed

10 files changed

+45
-296
lines changed

pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,10 @@
7373
<webjars-locator.version>0.38</webjars-locator.version>
7474
<spring-security-oauth2.version>2.3.8.RELEASE</spring-security-oauth2.version>
7575
<classgraph.version>4.8.44</classgraph.version>
76-
<javassist.version>3.26.0-GA</javassist.version>
7776
</properties>
7877

7978
<dependencyManagement>
8079
<dependencies>
81-
<dependency>
82-
<groupId>org.javassist</groupId>
83-
<artifactId>javassist</artifactId>
84-
<version>${javassist.version}</version>
85-
</dependency>
8680
<!-- swagger dependencies -->
8781
<dependency>
8882
<groupId>io.swagger.core.v3</groupId>

springdoc-openapi-common/src/main/java/org/springdoc/ui/AbstractSwaggerIndexTransformer.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
/*
2+
*
3+
* * Copyright 2019-2020 the original author or authors.
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * https://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
119
package org.springdoc.ui;
220

321
import java.io.ByteArrayOutputStream;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
*
3+
* * Copyright 2019-2020 the original author or authors.
4+
* *
5+
* * Licensed under the Apache License, Version 2.0 (the "License");
6+
* * you may not use this file except in compliance with the License.
7+
* * You may obtain a copy of the License at
8+
* *
9+
* * https://www.apache.org/licenses/LICENSE-2.0
10+
* *
11+
* * Unless required by applicable law or agreed to in writing, software
12+
* * distributed under the License is distributed on an "AS IS" BASIS,
13+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* * See the License for the specific language governing permissions and
15+
* * limitations under the License.
16+
*
17+
*/
18+
19+
package org.springdoc.ui;
20+
21+
public class SpringDocUIException extends RuntimeException{
22+
23+
public SpringDocUIException(String message, Throwable cause) {
24+
super(message, cause);
25+
}
26+
}

springdoc-openapi-data-rest/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
<groupId>org.springframework.data</groupId>
2020
<artifactId>spring-data-rest-core</artifactId>
2121
</dependency>
22-
<dependency>
23-
<groupId>com.querydsl</groupId>
24-
<artifactId>querydsl-core</artifactId>
25-
<optional>true</optional>
26-
</dependency>
27-
<dependency>
28-
<groupId>org.javassist</groupId>
29-
<artifactId>javassist</artifactId>
30-
<optional>true</optional>
31-
</dependency>
3222
<dependency>
3323
<groupId>org.hibernate.validator</groupId>
3424
<artifactId>hibernate-validator</artifactId>

springdoc-openapi-data-rest/src/main/java/org/springdoc/core/SpringDocDataRestConfiguration.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@
2929
import io.swagger.v3.oas.models.media.MapSchema;
3030
import io.swagger.v3.oas.models.media.ObjectSchema;
3131
import io.swagger.v3.oas.models.media.StringSchema;
32-
import javassist.ClassPool;
3332
import org.springdoc.core.converters.Pageable;
34-
import org.springdoc.core.converters.QueryDslPredicateConverter;
3533
import org.springdoc.core.converters.RepresentationModelLinksOASMixin;
3634
import org.springdoc.core.customizers.OpenApiCustomiser;
3735

3836
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
3937
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
4038
import org.springframework.context.annotation.Bean;
4139
import org.springframework.context.annotation.Configuration;
42-
import org.springframework.data.querydsl.binding.QuerydslBindingsFactory;
4340
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
4441
import org.springframework.hateoas.Link;
4542
import org.springframework.hateoas.Links;
@@ -57,17 +54,6 @@ public class SpringDocDataRestConfiguration {
5754
.replaceWithClass(org.springframework.data.domain.PageRequest.class, Pageable.class);
5855
}
5956

60-
61-
@Configuration
62-
@ConditionalOnClass(value = {QuerydslBindingsFactory.class, ClassPool.class})
63-
class QuerydslProvider {
64-
65-
@Bean
66-
public QueryDslPredicateConverter qdslConverter(Optional<QuerydslBindingsFactory> querydslBindingsFactory) {
67-
return querydslBindingsFactory.isPresent() ? new QueryDslPredicateConverter(querydslBindingsFactory.get()) : null;
68-
}
69-
}
70-
7157
@Configuration
7258
@ConditionalOnClass(RepositoryRestConfiguration.class)
7359
class HalProviderConfiguration {

springdoc-openapi-data-rest/src/main/java/org/springdoc/core/converters/QueryDslPredicateConverter.java

Lines changed: 0 additions & 135 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/DummyEntity.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/QDummyEntity.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

springdoc-openapi-data-rest/src/test/java/test/org/springdoc/api/app98/SpringDocApp98Test.java

Lines changed: 0 additions & 67 deletions
This file was deleted.

springdoc-openapi-webflux-ui/src/main/java/org/springdoc/ui/SwaggerIndexTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Mono<Resource> transform(ServerWebExchange serverWebExchange, Resource re
5252
}
5353
}
5454
catch (Exception e) {
55-
throw new RuntimeException("Failed to transform Index", e);
55+
throw new SpringDocUIException("Failed to transform Index", e);
5656
}
5757
}
5858

0 commit comments

Comments
 (0)