Add gitea publish workflow
All checks were successful
Build & Release / release-library (push) Successful in 3m37s

This commit is contained in:
2025-06-27 17:14:25 +02:00
parent e07d758f50
commit 19243b4707
4 changed files with 146 additions and 24 deletions

View File

@ -13,24 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin: 'java-library'
configurations {
webjar
plugins {
id 'java-library'
id 'maven-publish'
}
repositories {
mavenCentral()
maven { url "https://code.devsoap.com/api/packages/john/maven" }
}
dependencies {
// Keycloak extension dependencies
compileOnly "org.keycloak:keycloak-services:${keycloakVersion}"
// Examples of how to include webjars (these are not required to build the extension)
webjar 'org.webjars.npm:hyperscript.org:0.9.8'
webjar 'org.webjars.npm:htmx.org:1.9.2'
webjar 'org.webjars:uikit:3.17.9'
}
java {
@ -39,17 +33,4 @@ java {
}
}
/**
* Composes the provider plugin and all webjars into a single directory that can be mounted (or copy & pasted) into
* the Keycloak docker image. See docker-compose.yml for example.
*/
tasks.register("composeProviders", Copy) {
group = 'keycloak'
from project.configurations.webjar
from project.tasks.jar
into project.layout.buildDirectory.dir("providers")
duplicatesStrategy "exclude"
doFirst{
delete project.layout.buildDirectory.dir("providers")
}
}
apply from: 'publish.gradle'