-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathbuild.gradle
33 lines (28 loc) · 1015 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
buildscript {
dependencies {
classpath(libs.jreleaser)
}
}
plugins {
id 'net.consensys.zkevm.kotlin-library-minimal-conventions'
}
// These libs are public, so we're commited on their artifactIds and `build.linea` group id, unlike the internal ones
Set<String> publicApiLibs = [
"blob-compressor",
"blob-decompressor",
"blob-shnarf-calculator",
"l1-rollup",
"l2-message-service"
]
subprojects {
// Note that artifacts with generated code only will be skipped if :publish is called without preceding :build
def hasGeneratedSources = it.fileTree(dir: 'build/generated', includes: ['**/*.java', '**/*.kt']).files.size() > 0
def hasSourceFiles = it.fileTree(dir: 'src', includes: ['**/*.java', '**/*.kt']).files.size() > 0
if (hasSourceFiles || hasGeneratedSources) {
// !in operator doesn't work with spotless plugin
if (!publicApiLibs.contains(it.name)) {
group="${rootProject.group}.internal"
}
it.apply from: rootProject.file("gradle/publishing.gradle")
}
}