-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
104 lines (91 loc) · 2.87 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
ext.kotlin_version = '2.0.0'
ext.klogging_version = '3.0.5'
ext.jacksonKt_version = '2.17.1'
ext.libVersion = '2024.0.10'
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.23.6"
classpath "org.jlleitschuh.gradle:ktlint-gradle:12.1.1"
}
}
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
// id "org.jlleitschuh.gradle.ktlint-idea" version "11.6.1"
id "org.jlleitschuh.gradle.ktlint" version "12.1.1"
}
group = 'io.github.adven27'
version = libVersion
allprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
repositories {
mavenCentral()
}
}
subprojects {
// apply plugin: "io.gitlab.arturbosch.detekt"
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "org.jlleitschuh.gradle.ktlint"
repositories {
mavenCentral()
}
ktlint {
debug = true
verbose = true
android = false
}
group = 'io.github.adven27'
version = libVersion
sourceCompatibility = 17
targetCompatibility = 17
compileJava.options.encoding = 'utf-8'
compileTestJava.options.encoding = 'utf-8'
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions {
freeCompilerArgs += '-Xjsr305=strict'
jvmTarget = '17'
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
runtimeOnly 'com.pinterest:ktlint:0.47.1'
}
test {
systemProperty "user.timezone", "Europe/Moscow"
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
testLogging.events('FAILED', 'PASSED')
maxParallelForks = Runtime.runtime.availableProcessors()
}
}
tasks.register('publishMaven') {
dependsOn ":exam-core:publishToSonatype"
dependsOn ":exam-db:publishToSonatype"
dependsOn ":exam-ws:publishToSonatype"
dependsOn ":exam-mq:publishToSonatype"
dependsOn ":exam-mq-rabbit:publishToSonatype"
dependsOn ":exam-mq-kafka:publishToSonatype"
dependsOn ":exam-mq-ibmmq:publishToSonatype"
dependsOn ":exam-mq-redis:publishToSonatype"
// dependsOn ":exam-ui:publishToSonatype"
dependsOn ":exam-ms:publishToSonatype"
// dependsOn ":exam-nosql:publishToSonatype"
// dependsOn ":exam-nosql-mongo:publishToSonatype"
// dependsOn ":exam-nosql-elastic:publishToSonatype"
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}