-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (63 loc) · 2.1 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
plugins {
id "io.freefair.lombok" version "8.11"
id 'java-library'
id 'groovy'
id 'maven-publish'
}
sourceCompatibility = 17
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
ext {
springBootVersion = '3.4.1'
}
dependencies {
implementation platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
api "org.springframework:spring-web"
api "org.springframework.boot:spring-boot-starter-test"
implementation 'junit:junit'
api "com.github.ahunigel:test-toolkit:1.1.2"
testImplementation platform("org.spockframework:spock-bom:2.3-groovy-4.0")
testImplementation 'org.spockframework:spock-core'
testImplementation 'net.bytebuddy:byte-buddy' // allows mocking of classes (in addition to interfaces)
testImplementation "org.objenesis:objenesis:3.4"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine"
}
// Make all tests use JUnit 5
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ahunigel/${project.name}")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
maven(MavenPublication) {
from components.java
pom {
name = project.name
description = 'spring test toolkit'
url = "https://github.com/ahunigel/${project.name}"
developers {
developer {
id = 'ahunigel'
name = 'Nigel Zheng'
email = '[email protected]'
}
}
scm {
connection = "scm:git:[email protected]:ahunigel/${project.name}.git"
url = "https://github.com/ahunigel/${project.name}"
}
}
}
}
}