-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (61 loc) · 2.33 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
buildscript {
repositories {
gradlePluginPortal() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
}
dependencies {
classpath 'com.palantir.baseline:gradle-baseline-java:4.159.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.9.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.26.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:2.1.0'
}
}
plugins {
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "com.markelliot.versions" version "0.11.0"
}
apply plugin: 'com.palantir.baseline'
apply plugin: 'com.palantir.git-version'
apply plugin: 'com.palantir.consistent-versions'
apply plugin: 'com.palantir.baseline-java-versions'
version System.env.CIRCLE_TAG ?: gitVersion()
allprojects {
apply plugin: 'com.palantir.java-format'
version rootProject.version
group 'com.theoremlp.conjure.openapi'
repositories {
mavenCentral() { metadataSources { mavenPom(); ignoreGradleMetadataRedirection() } }
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'com.palantir.baseline-class-uniqueness'
tasks.withType(JavaCompile) {
options.compilerArgs += ['-Werror']
options.errorprone {
disable 'PreferSafeLoggableExceptions'
disable 'PreferSafeLoggingPreconditions'
disable 'Slf4jLogsafeArgs'
disable 'PreferSafeLogger'
disable 'Slf4jConstantLogMessage'
}
}
tasks.check.dependsOn(javadoc)
}
javaVersions {
libraryTarget = 17
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("MAVEN_CENTRAL_USER"))
password.set(System.getenv("MAVEN_CENTRAL_PASSWORD"))
}
}
}
// GCV is currently not compatible with Gradle 8 and so we're blocked on upgrading
// https://github.com/palantir/gradle-consistent-versions/issues/1027
tasks.updateGradleWrapper.enabled = false