-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 #39963 from phillip-kruger/mvnpm-webjar-locator
Add mvnpm support in webjar-locator
- Loading branch information
Showing
14 changed files
with
347 additions
and
48 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
15 changes: 15 additions & 0 deletions
15
...tor/deployment/src/main/java/io/quarkus/webjar/locator/deployment/ImportMapBuildItem.java
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,15 @@ | ||
package io.quarkus.webjar.locator.deployment; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
|
||
public final class ImportMapBuildItem extends SimpleBuildItem { | ||
private final String importmap; | ||
|
||
public ImportMapBuildItem(String importmap) { | ||
this.importmap = importmap; | ||
} | ||
|
||
public String getImportMap() { | ||
return this.importmap; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...or/deployment/src/main/java/io/quarkus/webjar/locator/deployment/WebJarLocatorConfig.java
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,26 @@ | ||
package io.quarkus.webjar.locator.deployment; | ||
|
||
import java.util.Map; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
|
||
/** | ||
* Build time configuration for WebJar Locator. | ||
*/ | ||
@ConfigRoot | ||
public class WebJarLocatorConfig { | ||
|
||
/** | ||
* If the version reroute is enabled. | ||
*/ | ||
@ConfigItem(defaultValue = "true") | ||
public boolean versionReroute; | ||
|
||
/** | ||
* User defined import mappings | ||
*/ | ||
@ConfigItem | ||
public Map<String, String> importMappings; | ||
|
||
} |
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
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
Oops, something went wrong.