mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-18 20:47:58 +00:00
97 lines
2.9 KiB
Groovy
97 lines
2.9 KiB
Groovy
plugins {
|
|
id 'application'
|
|
id 'java'
|
|
id 'war'
|
|
id "nebula.ospackage" version "9.1.1"
|
|
id 'org.springframework.boot' version '3.0.1'
|
|
id 'io.spring.dependency-management' version '1.1.0'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(17)
|
|
}
|
|
}
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
flatDir { dirs "lib" }
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
jaxb "org.glassfish.jaxb:jaxb-xjc:4.0.1"
|
|
jaxb "org.glassfish.jaxb:jaxb-runtime:4.0.1"
|
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.projectlombok:lombok'
|
|
implementation 'org.bouncycastle:bcmail-jdk15on:1.70'
|
|
implementation 'org.springframework.plugin:spring-plugin-core:3.0.0'
|
|
implementation 'org.apache.httpcomponents:httpclient:4.5.7'
|
|
implementation 'com.google.guava:guava:31.1-jre'
|
|
implementation 'org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.0'
|
|
implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
|
|
implementation 'commons-codec:commons-codec:1.15'
|
|
implementation 'org.apache.commons:commons-lang3:3.12.0'
|
|
implementation 'org.apache.logging.log4j:log4j-core:2.19.0'
|
|
implementation 'org.apache.logging.log4j:log4j-api:2.19.0'
|
|
implementation 'com.eclipsesource.minimal-json:minimal-json:0.9.5'
|
|
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.2'
|
|
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
|
|
implementation "org.glassfish.jaxb:jaxb-runtime:4.0.1"
|
|
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0'
|
|
// implementation 'com.sun.xml.bind:jaxb-impl:4.0.2' //creates duplicate error
|
|
compileOnly 'org.projectlombok:lombok'
|
|
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
|
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
war {
|
|
from(buildDir) {
|
|
include 'VERSION'
|
|
into 'WEB-INF/classes'
|
|
}
|
|
archiveFileName = 'HIRS_AttestationCAPortal.war'
|
|
}
|
|
|
|
task generateXjcLibrary(type:Exec) {
|
|
workingDir 'config'
|
|
|
|
commandLine './genXjcLibrary.sh'
|
|
}
|
|
compileJava.dependsOn generateXjcLibrary
|
|
|
|
//ospackage {
|
|
// packageName = 'HIRS_AttestationCA'
|
|
// os = LINUX
|
|
// arch = NOARCH
|
|
// release = '1'
|
|
//
|
|
// user 'root'
|
|
// fileMode = 0755
|
|
//
|
|
// addParentDirs = true
|
|
// createDirectoryEntry true
|
|
//
|
|
// into ("/opt/tomcat/webapps") {
|
|
// from war.outputs.files
|
|
// from '../HIRS_AttestationCAPortal/build/libs/HIRS_AttestationCAPortal.war'
|
|
// user 'root'
|
|
// fileMode = 0755
|
|
// }
|
|
//
|
|
// buildRpm {
|
|
// arch = X86_64
|
|
// }
|
|
//}
|