Skip to content

Commit

Permalink
Merge pull request #34 from Tushar-Naik/master-v1
Browse files Browse the repository at this point in the history
[bugfix] Removing scoped filter while discovering packages
  • Loading branch information
santanusinha authored Oct 6, 2023
2 parents 9c1efe6 + 2f6220f commit fef0301
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Use the following dependency in your code.
<dependency>
<groupId>io.appform.hope</groupId>
<artifactId>hope-lang</artifactId>
<version>2.0.3</version>
<version>2.0.4</version>
</dependency>
```

Expand Down
5 changes: 4 additions & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# 2.0.4
- Bugfix: Removed the filterInputsBy package line, which prevents scanning custom packages that are registered on hopebuilder

# 2.0.3
- Bugfix in `pointer.exists`
- Version bump for vulnerable components
-

# 2.0.2
- Added equals and hashCode to value types

Expand Down
2 changes: 1 addition & 1 deletion hope-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hope</artifactId>
<groupId>io.appform.hope</groupId>
<version>2.0.3</version>
<version>2.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public synchronized void discover(List<String> packages) {
Reflections reflections = new Reflections(
new ConfigurationBuilder()
.setUrls(packageUrls)
.setScanners(new SubTypesScanner(), new TypeAnnotationsScanner())
.filterInputsBy(new FilterBuilder().includePackage("io.appform.hope.core.functions.impl")));
.setScanners(new SubTypesScanner(), new TypeAnnotationsScanner()));
log.debug("Type scanning complete");
final Set<Class<? extends HopeFunction>> classes = reflections.getSubTypesOf(HopeFunction.class);
classes
Expand Down
2 changes: 1 addition & 1 deletion hope-lang/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>hope</artifactId>
<groupId>io.appform.hope</groupId>
<version>2.0.3</version>
<version>2.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.appform.hope</groupId>
<artifactId>hope</artifactId>
<packaging>pom</packaging>
<version>2.0.3</version>
<version>2.0.4</version>

<name>Hope</name>
<url>https://github.com/santanusinha/hope</url>
Expand Down

0 comments on commit fef0301

Please sign in to comment.