-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.6 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
plugins {
id "com.diffplug.spotless" version "6.19.0"
id "org.graalvm.buildtools.native" version "0.10.1" // or dependsOn fails in graalvm examples
id "com.asarkar.gradle.build-time-tracker" version "4.3.0"
id "org.jetbrains.kotlin.jvm" version "1.9.10" apply false
id "org.jetbrains.kotlin.kapt" version "1.9.10" apply false
}
group = groupId
version = koraVersion
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
subprojects {
if (!project.childProjects.isEmpty()) {
return
}
apply plugin: "java"
apply plugin: "com.asarkar.gradle.build-time-tracker"
if (!project.name.contains("kotlin")) {
apply plugin: "com.diffplug.spotless"
spotless {
java {
encoding("UTF-8")
importOrder()
removeUnusedImports()
eclipse("4.21").configFile("${rootDir}/config/codestyle.xml")
targetExclude("**/proto/**", "**/generated/openapi/**", "**/generated/soap/**", "**/generated/grpc/**",)
}
}
}
group = groupId
version = koraVersion
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
configurations {
configureEach {
resolutionStrategy {
cacheChangingModulesFor 0, "seconds" // check for updates every build
}
}
}
task allDeps(type: DependencyReportTask) {}
}
apply from: "${project.rootDir}/grouping.gradle"