-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
75 lines (62 loc) · 2 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.7.22' apply false
id 'org.jetbrains.kotlin.plugin.spring' version '1.7.22' apply false
id "org.jetbrains.kotlin.kapt" version "1.7.22" apply false
id "com.google.devtools.ksp" version "1.7.22-1.0.8" apply false
id "org.jmailen.kotlinter" version "3.13.0"
}
allprojects {
version = "0.0.4"
group = 'herbaccara'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
google()
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
apply plugin: "org.jetbrains.kotlin.jvm"
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
apply plugin: "org.jmailen.kotlinter"
kotlinter {
disabledRules = ["no-wildcard-imports", "enum-entry-name-case"]
}
tasks.named('test') {
useJUnitPlatform()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.3'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
}
}