-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from dodgex/13-locator-properties
Add support for webjars-locator.properties
- Loading branch information
Showing
6 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ain/resources/META-INF/native-image/org.webjars/webjars-locator-lite/resource-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"resources": { | ||
"includes": [ | ||
{ | ||
"pattern": "\\QMETA-INF/resources/webjars-locator.properties\\E", | ||
"condition": { | ||
"typeReachable": "org.webjars.WebJarVersionLocator" | ||
} | ||
}, | ||
{ | ||
"pattern": "\\QMETA-INF\/resources\/webjars\/\\E.*", | ||
"condition": { | ||
"typeReachable": "org.webjars.WebJarVersionLocator" | ||
} | ||
}, | ||
{ | ||
"pattern": "\\QMETA-INF/maven/org.webjars/\\E.*\\Q/pom.properties\\E", | ||
"condition": { | ||
"typeReachable": "org.webjars.WebJarVersionLocator" | ||
} | ||
}, | ||
{ | ||
"pattern": "\\QMETA-INF/maven/org.webjars.npm/\\E.*\\Q/pom.properties\\E", | ||
"condition": { | ||
"typeReachable": "org.webjars.WebJarVersionLocator" | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/test/resources/META-INF/resources/webjars-locator.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# WebJar that can be found on classpath | ||
goodwebjar.version=3.2.1 | ||
|
||
# WebJar that is not present in classpath | ||
badwebjar.version=1.2.3 | ||
|
||
# Bower Webjar from dependencies | ||
js-base64.version=2.3.2 |
1 change: 1 addition & 0 deletions
1
src/test/resources/META-INF/resources/webjars/goodwebjar/3.2.1/goodwebjar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Awesome WebJar content |