-
Notifications
You must be signed in to change notification settings - Fork 53
/
build.gradle
50 lines (44 loc) · 1.19 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
plugins {
id 'java'
id 'com.google.protobuf' version '0.8.13'
id 'com.github.jlouns.cpe' version '0.5.0'
alias(libs.plugins.spotless)
}
project.ext.set('grpcVersion', '1.53.0')
project.ext.set('protobufVersion', '3.12.0')
project.ext.set('protocVersion', project.protobufVersion)
project.ext.set('toolingAPIVersion', '8.8')
allprojects {
group = 'vscode-gradle'
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.google.protobuf'
apply plugin: 'com.diffplug.spotless'
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://maven-central.storage-download.googleapis.com/repos/central/data/'
}
maven {
url 'https://repo.gradle.org/gradle/libs-releases'
}
}
protobuf {
protoc {
if (osdetector.os == 'osx') {
// Required for arm64 support on MacOS
artifact = "com.google.protobuf:protoc:${protocVersion}:osx-x86_64"
} else {
artifact = "com.google.protobuf:protoc:${protocVersion}"
}
}
}
}
task(format) {
dependsOn(':gradle-server:spotlessApply')
dependsOn(':gradle-plugin:spotlessApply')
dependsOn(':gradle-plugin-api:spotlessApply')
dependsOn(':gradle-language-server:spotlessApply')
}