-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
109 lines (94 loc) · 3.41 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id 'java'
id "signing"
id "maven-publish"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
group 'de.florianmoehle'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
java {
sourceCompatibility = 'VERSION_1_10'
targetCompatibility = 'VERSION_1_10'
withJavadocJar()
withSourcesJar()
}
dependencies {
implementation 'org.junit.jupiter:junit-jupiter-api:5.7.2'
implementation 'org.junit.jupiter:junit-jupiter-engine:5.7.2'
implementation 'org.springframework:spring-test:5.3.7'
implementation 'org.springframework:spring-context:5.3.7'
implementation 'org.springframework.data:spring-data-jpa:2.5.2'
implementation 'org.apache.commons:commons-dbcp2:2.8.0'
implementation 'org.hibernate:hibernate-core:5.5.3.Final'
implementation 'org.liquibase:liquibase-core:4.3.5'
implementation 'com.google.auto.service:auto-service:1.0'
implementation 'org.springframework:spring-core:5.3.7'
implementation 'com.h2database:h2:1.4.200'
}
group = "de.florian-moehle"
version = System.getenv("GITHUB_VERSION") ?: "1.0.0-SNAPSHOT"
description = "A Spring Boot extension which gives you a clean DB session for each test run"
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = "spring-database-test"
from components.java
pom {
name = "Spring Database Test"
description = "A Spring Boot extension which gives you a clean DB session for each test run"
url = "https://github.com/Florianisme/SpringDatabaseTest"
licenses {
license {
name = "MIT License"
url = "https://opensource.org/licenses/MIT"
}
}
developers {
developer {
id = "Florianisme"
name = "Florian Möhle"
email = "[email protected]"
}
}
scm {
connection = "scm:git:https://github.com/Florianisme/SpringDatabaseTest.git"
developerConnection = "scm:git:ssh://github.com/Florianisme/SpringDatabaseTest.git"
url = "https://github.com/Florianisme/SpringDatabaseTest"
}
issueManagement {
system = "GitHub"
url = "https://github.com/Florianisme/SpringDatabaseTest/issues"
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = project.findProperty("gpr.ossrhUser") ?: System.getenv("OSSRHUSER")
password = project.findProperty("gpr.ossrhPassword") ?: System.getenv("OSSRHPASSWORD")
}
}
}
signing {
def signingKey = findProperty("signingKey") ?: System.getenv("GPG_PRIVATE_KEY")
def signingPassword = findProperty("signingPassword") ?: System.getenv("GPG_PASSPHRASE")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
test {
useJUnitPlatform()
}