33 lines
841 B
Groovy
33 lines
841 B
Groovy
import org.springframework.boot.gradle.plugin.SpringBootPlugin
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
description = "Sentiment Analysis Lab"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencyManagement {
|
|
imports {
|
|
mavenBom SpringBootPlugin.BOM_COORDINATES
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
|
|
implementation 'ai.djl:api:0.33.0'
|
|
implementation 'ai.djl.pytorch:pytorch-engine:0.33.0'
|
|
implementation 'ai.djl.pytorch:pytorch-model-zoo:0.33.0'
|
|
|
|
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
} |