-
Notifications
You must be signed in to change notification settings - Fork 51
/
build.gradle
76 lines (66 loc) · 1.65 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
75
76
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(libs.spotless.gradle)
classpath(libs.palantir.gradle)
}
}
plugins {
alias(libs.plugins.nebula.release)
}
subprojects {
apply plugin: "java"
apply plugin: "com.diffplug.spotless"
apply plugin: "com.palantir.baseline-checkstyle"
apply plugin: "maven-publish"
group "io.tabular.connect"
repositories {
mavenCentral()
maven {
url = "https://tabular-repository-public.s3.amazonaws.com/releases"
}
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Implementation-Vendor": "Tabular Technologies, Inc.",
"Build-Timestamp": java.time.Instant.now().toString(),
"Build-JDK": "${System.properties["java.version"]} (${System.properties["java.vendor"]} ${System.properties["java.vm.version"]})",
"Build-OS": "${System.properties["os.name"]} ${System.properties["os.arch"]} ${System.properties["os.version"]}",
)
}
}
spotless {
java {
target project.fileTree(project.rootDir) {
include 'src/**/*.java'
exclude 'src/*/io/debezium/**/*.java'
}
googleJavaFormat("1.7")
removeUnusedImports()
licenseHeaderFile "$rootDir/header.txt"
}
}
checkstyle {
toolVersion '9.3'
}
publishing {
repositories {
maven {
authentication {
awsIm(AwsImAuthentication)
}
url = "s3://tabular-repository-public/releases"
}
}
}
}