-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (65 loc) · 2.15 KB
/
Copy pathbuild.gradle
File metadata and controls
72 lines (65 loc) · 2.15 KB
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
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.1/userguide/building_java_projects.html
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
// Add spotless plugin
id("com.diffplug.spotless") version "7.2.1"
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
compileOnly 'org.apache.kafka:connect-api:3.9.1'
compileOnly 'org.apache.kafka:connect-transforms:3.9.1'
compileOnly 'org.apache.kafka:kafka_2.13:3.9.1'
testImplementation 'org.apache.kafka:connect-api:3.9.1'
testImplementation 'org.apache.kafka:connect-transforms:3.9.1'
testImplementation 'org.apache.kafka:kafka_2.13:3.9.1'
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter:5.14.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.14.0'
// Dependencies provided by Kafka Connect
compileOnly 'com.fasterxml.jackson.core:jackson-databind:2.20.0'
compileOnly 'org.slf4j:slf4j-api:2.0.17'
}
java {
sourceCompatibility = '11'
targetCompatibility = '11'
}
test {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}
spotless {
java {
target "src/main/java/**/*.java", "src/test/java/**/*.java"
palantirJavaFormat("2.58.0").style("PALANTIR").formatJavadoc(true)
removeUnusedImports()
formatAnnotations()
importOrder()
trimTrailingWhitespace()
endWithNewline()
licenseHeaderFile {
file ".spotless/HEADER"
}
}
groovyGradle {
target "*.gradle"
importOrder()
removeSemicolons()
leadingTabsToSpaces()
}
yaml {
target "src/main/resources/*.yml", "src/test/resources/**/*.yml"
jackson()
.feature('ORDER_MAP_ENTRIES_BY_KEYS', true)
.yamlFeature('WRITE_DOC_START_MARKER', false)
}
}