-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
60 lines (51 loc) · 1.75 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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.2/userguide/building_java_projects.html
*/
plugins {
id 'java'
id "com.heroku.sdk.heroku-gradle" version "2.0.0"
id "application"
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
google()
}
jar {
manifest {
attributes 'Main-Class' : 'Server'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
sourceCompatibility = 1.8
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.32.3'
implementation group: 'org.sql2o', name: 'sql2o', version: '1.6.0'
implementation 'com.sparkjava:spark-core:2.9.2'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'org.postgresql:postgresql:42.2.17'
implementation 'org.slf4j:slf4j-simple:2.0.0-alpha1'
implementation 'org.xerial:sqlite-jdbc:3.32.3.2'
compile 'io.github.cdimascio:dotenv-java:2.2.0'
implementation "com.zaxxer:HikariCP:3.4.5"
implementation group: 'org.sql2o.extensions', name: 'sql2o-postgres', version: '1.6.0'
implementation group: "com.twilio.sdk", name: "twilio", version: "8.19.1"
}
apply plugin : "java"
ext {
javaMainClass = "Server"
}
application {
mainClassName = javaMainClass
}
task stage(dependsOn: ['clean'])