-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (41 loc) · 1.27 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
allprojects {
configurations {
// See https://github.com/gradle/gradle/issues/10861
// To avoid publishing the internal-platform
internalPlatform {
visible = false
canBeConsumed = false
canBeResolved = false
}
annotationProcessor.extendsFrom(internalPlatform)
compileClasspath.extendsFrom(internalPlatform)
runtimeClasspath.extendsFrom(internalPlatform)
testAnnotationProcessor.extendsFrom(internalPlatform)
testCompileClasspath.extendsFrom(internalPlatform)
testRuntimeClasspath.extendsFrom(internalPlatform)
}
pluginManager.withPlugin('maven-publish') {
apply from: "${rootDir}/gradle/publish.gradle"
}
pluginManager.withPlugin('java-library') {
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
withJavadocJar()
}
repositories {
mavenCentral()
}
testing {
suites {
// Configure the built-in test suite
test {
// Use JUnit Jupiter test framework
useJUnitJupiter('5.8.1')
}
}
}
}
}