Add gitea publish workflow
All checks were successful
Build & Release / release-library (push) Successful in 3m37s
All checks were successful
Build & Release / release-library (push) Successful in 3m37s
This commit is contained in:
29
build.gradle
29
build.gradle
@ -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'
|
Reference in New Issue
Block a user