Hi Team,
the below is my project structure
> Task :projects
------------------------------------------------------------
Root project 'ingress'
------------------------------------------------------------
Root project 'ingress'
+--- Project ':ingress-common'
+--- Project ':ingress-core'
+--- Project ':ingress-recipes'
\--- Project ':ingress-web'
ingress-web created a war file .
now i want to get jar as output artifact to acheive that i am using the plugin id “io.openliberty.tools.gradle.Liberty” version “3.8”
but in output jar ,files in src/main/resources is missing.
unable to package the resources present in subdirectories.
This is my ingress-web build.gradle
plugins {
id "war"
id "io.openliberty.tools.gradle.Liberty" version "3.8"
}
webAppDirName = 'webapp'
repositories {
mavenLocal()
mavenCentral()
if (project.ENV != "VAR_ENV") {
maven {
credentials {
username = System.getenv('GRADLE_REPO_USERNAME')
password = System.getenv('GRADLE_REPO_PASSWORD')
}
url project.AF_REPO_URL_SA + project.REPO_HANDLE_SA + "/" + project.ENV
}
}
}
dependencies {
libertyRuntime group: 'io.openliberty', name: 'openliberty-kernel', version: '23.0.0.3'
implementation project(':ingress-common')
implementation project(':ingress-core')
}
war {
archiveFileName = "ingress-web.war"
}
liberty {
server {
name = 'Ingress'
packageLiberty {
packageName = "ingress-web"
include = "runnable"
packageType = "jar"
}
configDirectory = file("${project.rootDir}/deploy/defaultServer")
}
}
task bootJar(
dependsOn: ['appJarToLibs'],
description: 'Package Trigger Task for CIO CD-CI Pipeline',
group: 'build'
)
task appJarToLibs(dependsOn: ['libertyPackage'], type: Copy) {
from "$buildDir/libs/ingress-web.jar"
into "$rootDir/build/libs/"
}
However the individual jar being produced has the filed in resources folder.
Can you please kindly provide your help on this.
Thanks