-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
57 lines (43 loc) · 1014 Bytes
/
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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.22.0'
}
}
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: "com.vanniktech.maven.publish"
def javaTargetVersion = 11
sourceCompatibility = javaTargetVersion
subprojects {
tasks.withType(JavaCompile.class) {
options.release = javaTargetVersion
}
}
dependencies {
api 'org.slf4j:slf4j-api:1.7.32'
// Use JUnit test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
repositories {
mavenCentral()
mavenLocal()
}
tasks.withType(JavaCompile.class) {
options.release = javaTargetVersion
}
test {
useJUnitPlatform()
}
mavenPublishing {
publishToMavenCentral()
signAllPublications()
}
signing {
if (hasProperty('SIGNING_PRIVATE_KEY')) {
useInMemoryPgpKeys(SIGNING_PRIVATE_KEY, "")
}
}