-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
74 lines (60 loc) · 2.62 KB
/
build.gradle
File metadata and controls
74 lines (60 loc) · 2.62 KB
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
plugins {
id "org.sonarqube" version "$sonarqube_version"
id "net.nemerosa.versioning" version "3.0.0"
id "checkstyle"
}
project.group = 'com.spinyowl'
printProjectInfo()
private void printProjectInfo() {
println "##################################################"
println "# Build info: #"
println sprintf("# Project group: %-25s#", project.group)
println sprintf("# Project name: %-25s#", project.name)
println sprintf("# Project version: %-25s#", project.version)
println sprintf("# Java version: %-25s#", JavaVersion.current())
println "##################################################"
}
subprojects {
group = 'com.spinyowl'
version = rootProject.version
// replace with new api
getLayout().getBuildDirectory().set(new File(rootProject.projectDir, "build/${project.name}"))
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://raw.githubusercontent.com/SpinyOwl/repo/releases" }
}
plugins.withType(JavaLibraryPlugin).configureEach {
java {
modularity.inferModulePath = true
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
javadoc.options.encoding = 'UTF-8'
dependencies {
api group: 'org.projectlombok', name: 'lombok', version: lombok_version
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombok_version
testCompileOnly group: 'org.projectlombok', name: 'lombok', version: lombok_version
testAnnotationProcessor group: 'org.projectlombok', name: 'lombok', version: lombok_version
// api
// implementation
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: junit_version
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: junit_version
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junit_version
}
}
tasks.withType(Test).configureEach {
useJUnitPlatform()
}
}
sonarqube {
properties {
property "sonar.projectKey", "SpinyOwl_SpinyGUI"
property "sonar.java.source", "17"
property "sonar.organization", "spinyowl"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.branch.name", versioning.info.branch
}
}