Skip to content

Commit

Permalink
update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Yinnii committed Jul 4, 2024
1 parent a26c551 commit 77ecaa9
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions openai-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,15 @@ repositories {
dependencies {

implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.14'
implementation 'org.springdoc:springdoc-openapi-data-rest:1.6.14'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'org.springframework.boot:spring-boot-starter-security'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'org.postgresql:postgresql'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0'

implementation 'org.glassfish.jersey.core:jersey-server:3.0.2'
implementation 'org.glassfish.jersey.containers:jersey-container-servlet:3.0.2'
implementation 'org.glassfish.jersey.media:jersey-media-multipart:3.0.2'
implementation 'org.glassfish.tyrus.bundles:tyrus-standalone-client:1.15'

implementation 'io.swagger.core.v3:swagger-annotations:2.2.10'

implementation 'commons-io:commons-io:2.11.0'
implementation 'org.java-websocket:Java-WebSocket:1.5.2'

Expand Down Expand Up @@ -86,16 +81,20 @@ configurations {

jar {
manifest {
attributes "Main-Class": "${project.property('service.name')}.${project.property('service.class')}"
attributes "Library-Version": "${project.property('service.version')}"
attributes "Library-SymbolicName": "${project.property('service.name')}"
attributes(
'Main-Class': "${project.property('service.name')}.${project.property('service.class')}",
'Library-Version': "${project.property('service.version')}",
'Library-SymbolicName': "${project.property('service.name')}"
)
}

from { (configurations.runtimeClasspath).collect { it.isDirectory() ? it : zipTree(it) } } {
// Exclude signatures to be able to natively bundle signed jars
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

application {
Expand Down

0 comments on commit 77ecaa9

Please sign in to comment.