-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Rahul] | BAH-3969 | Fix. Tomcat 10 Build Files
- Loading branch information
1 parent
0aa7c62
commit 13ef075
Showing
5 changed files
with
78 additions
and
147 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
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,61 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
group 'org.bahmni.deployment' | ||
version '1.0-SNAPSHOT' | ||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
maven { | ||
url 'https://mavenrepo.openmrs.org/nexus/content/repositories/public' // Use HTTPS instead of HTTP | ||
} | ||
maven { | ||
url 'https://oss.sonatype.org/content/repositories' // Use HTTPS | ||
} | ||
} | ||
|
||
def tomcatVersion = '10.1.24' // Define Tomcat version here | ||
|
||
dependencies { | ||
implementation "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}" | ||
implementation "org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}" | ||
implementation "org.apache.tomcat:tomcat-jasper:${tomcatVersion}" | ||
implementation "org.apache.tomcat:tomcat-jasper-el:${tomcatVersion}" | ||
implementation "org.apache.tomcat:tomcat-jsp-api:${tomcatVersion}" | ||
} | ||
|
||
jar { | ||
duplicatesStrategy = 'exclude' | ||
|
||
manifest { | ||
attributes 'Main-Class': 'org.bahmni.deployment.launch.Main' | ||
} | ||
|
||
from { | ||
configurations.runtimeClasspath.collect { | ||
it.isDirectory() ? it : zipTree(it) | ||
} | ||
} | ||
|
||
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' | ||
} | ||
|
||
configurations { | ||
all { | ||
exclude group: 'com.sun.jdmk', module: 'jmxtools' | ||
exclude group: 'com.sun.jmx', module: 'jmxri' | ||
exclude group: 'javax.jms', module: 'jms' | ||
exclude group: 'javax.mail', module: 'mail' | ||
} | ||
} | ||
|
||
// Print Tomcat version after project configuration | ||
gradle.afterProject { project -> | ||
println "Built with Apache Tomcat version: ${tomcatVersion}" | ||
} |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
rootProject.name = 'bahmni' | ||
|
||
include 'bahmni-embedded-tomcat-10' |
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