-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
74 lines (57 loc) · 2.09 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group 'edu.pucmm.eict'
version '1.0-SNAPSHOT'
ext{
openapi = "6.1.3"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
mainClassName='edu.pucmm.eict.ormjpa.Main'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
//dependencia de Javalin
implementation 'io.javalin:javalin:6.1.3'
//manejo de log.
implementation "org.slf4j:slf4j-simple:2.0.11"
// En la versión 5.3.X separaron las clases del renderizado en otro proyecto
implementation "io.javalin:javalin-rendering:6.1.3"
//Procesamiento JSON para Javalin.
implementation("com.fasterxml.jackson.core:jackson-core:2.15.2")
implementation('com.fasterxml.jackson.core:jackson-databind:2.15.2')
implementation("com.fasterxml.jackson.core:jackson-annotations:2.15.2")
//ORM - Hibernate.
implementation 'org.hibernate.orm:hibernate-core:6.0.2.Final'
//implementation 'org.hibernate:hibernate-entitymanager:6.0.0.Alpha7'
//Driver de la conexión en h2...
implementation 'com.h2database:h2:2.1.214'
implementation 'org.postgresql:postgresql:42.3.8'
//sistemas de plantilla:
implementation 'org.thymeleaf:thymeleaf:3.1.1.RELEASE'
//OpenApi
annotationProcessor("io.javalin.community.openapi:openapi-annotation-processor:$openapi")
implementation("io.javalin.community.openapi:javalin-openapi-plugin:$openapi") // for /openapi route with JSON scheme
implementation("io.javalin.community.openapi:javalin-swagger-plugin:$openapi") // for Swagger UI
implementation("io.javalin.community.openapi:javalin-redoc-plugin:$openapi") // for ReDoc UI
}
shadowJar{
archiveBaseName.set("app")
archiveClassifier.set('')
archiveVersion.set('')
}
/**
* tarea necesaria para heroku si optamos por la tarea de Shadowjar
* en el archivo Procfile debe estar el siguiente comando:
* web: java -jar build/libs/app.jar
*/
task stage {
dependsOn shadowJar
}