-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle
65 lines (52 loc) · 1.61 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
plugins {
id 'java'
id "io.freefair.lombok" version "5.1.0"
id 'org.springframework.boot' version '2.3.3.RELEASE'
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web:2.3.0.RELEASE'
implementation 'javax.persistence:javax.persistence-api:2.2'
implementation 'org.projectlombok:lombok:1.18.12'
implementation 'org.apache.commons:commons-math3:3.5'
implementation 'com.h2database:h2:1.4.200'
implementation 'org.jdbi:jdbi3-core:3.14.1'
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.3.0.RELEASE'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.1'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.6.1'
}
group = 'edu.depail.se433'
version = '0.0.1-SNAPSHOT'
description = 'shopping-app'
java {
sourceCompatibility = JavaVersion.VERSION_11
}
def user = 'dwalke30'
bootJar {
mainClassName = 'edu.depaul.se433.shoppingapp.ShoppingAppApplication'
}
test {
useJUnitPlatform ()
afterTest { desc, result ->
logger.quiet "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}
task packageDistribution(type: Zip) {
dependsOn test
archiveFileName = "${user}-${rootProject.name}.zip"
destinationDirectory = file("$buildDir/dist")
from("$projectDir") {
include "src/**/*"
include "build.gradle"
include "gradlew"
include "gradlew.bat"
include "settings.gradle"
}
into("${user}-${rootProject.name}")
}
check {
finalizedBy packageDistribution
}