-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Deploy JavaScript adapter to Maven repository #23256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd"> | ||
| <id>dist</id> | ||
| <formats> | ||
| <format>zip</format> | ||
| </formats> | ||
| <includeBaseDirectory>false</includeBaseDirectory> | ||
| <fileSets> | ||
| <fileSet> | ||
| <directory>${project.basedir}/target</directory> | ||
| <outputDirectory>.</outputDirectory> | ||
| <includes> | ||
| <include>keycloak-*.tgz</include> | ||
| </includes> | ||
| </fileSet> | ||
| </fileSets> | ||
| </assembly> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ | |
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-deploy-plugin</artifactId> | ||
| <configuration> | ||
| <skip>true</skip> | ||
| <skip>false</skip> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
|
|
@@ -71,6 +71,50 @@ | |
| <installDirectory>../..</installDirectory> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>ca.szc.maven</groupId> | ||
| <artifactId>jsonpath-maven-plugin</artifactId> | ||
| <version>1.0.0</version> | ||
| <executions> | ||
| <execution> | ||
| <id>update-version</id> | ||
| <phase>process-resources</phase> | ||
| <goals> | ||
| <goal>modify</goal> | ||
| </goals> | ||
| <configuration> | ||
| <file>${basedir}/package.json</file> | ||
| <modifications> | ||
| <modification> | ||
| <expression>$.version</expression> | ||
| <value>${project.version}</value> | ||
| </modification> | ||
| </modifications> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
|
Comment on lines
+75
to
+96
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to rather align the way the version is set in This also takes care of setting versions in Maven files, containers, docs, and makes sure admin client/console uses the correct versions.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this should be re-used if possible. Also because I believe the lockfile needs an update as well. |
||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>build-helper-maven-plugin</artifactId> | ||
| <executions> | ||
| <execution> | ||
| <id>attach-artifacts</id> | ||
| <phase>package</phase> | ||
| <goals> | ||
| <goal>attach-artifact</goal> | ||
| </goals> | ||
| <configuration> | ||
| <artifacts> | ||
| <artifact>${project.basedir}/assembly.xml | ||
| <file>target/keycloak-js-${project.version}.tgz</file> | ||
| <type>tar.gz</type> | ||
| </artifact> | ||
| </artifacts> | ||
| </configuration> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed, we should rather just attach
keycloak-js-999.0.0-SNAPSHOT.tgzas it is already created bynpm pack.The format of the tgz file is explicit to support installation with
npmand other package managers. For example with the new format one can donpm install keycloak-js-999.0.0-SNAPSHOT.tgz.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, there should be no reason to re-pack this in another archive, as it is already an archive.