-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle.kts
171 lines (148 loc) · 4.55 KB
/
build.gradle.kts
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
plugins {
java
jacoco
`maven-publish`
id("org.springframework.boot") version "2.7.2"
id("io.spring.dependency-management") version "1.0.12.RELEASE"
id("io.freefair.javadoc-links") version "6.5.0.3"
id("io.freefair.javadoc-utf-8") version "6.5.0.3"
id("io.freefair.lombok") version "6.5.0.3"
id("com.github.ben-manes.versions") version "0.42.0"
id("me.qoomon.git-versioning") version "6.3.0"
}
group = "ru.digilabs.alkir"
gitVersioning.apply {
refs {
considerTagsOnBranches = true
tag("v(?<tagVersion>[0-9].*)") {
version = "\${ref.tagVersion}\${dirty:-SNAPSHOT}"
}
branch(".+") {
version = "\${ref}-\${commit.short}\${dirty:-SNAPSHOT}"
}
}
rev {
version = "\${commit.short}\${dirty:-SNAPSHOT}"
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:unchecked")
options.compilerArgs.add("-Xlint:deprecation")
options.compilerArgs.add("-parameters")
}
tasks.jar {
enabled = false
}
configurations {
compileOnly {
extendsFrom(annotationProcessor.get())
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.security:spring-security-oauth2-resource-server")
implementation("org.springframework.retry:spring-retry")
implementation("de.codecentric:spring-boot-admin-starter-server:2.7.3")
implementation("de.codecentric:spring-boot-admin-starter-client:2.7.3")
implementation("com.github.briandilley.jsonrpc4j:jsonrpc4j:1.6")
implementation("javax.jws:javax.jws-api:1.1")
implementation("org.springdoc", "springdoc-openapi-ui", "1.6.9")
implementation("org.springdoc", "springdoc-openapi-security", "1.6.9")
implementation("org.jboss.netty", "netty", "3.2.10.Final")
implementation("com._1c.v8", "core", "1.0.2")
implementation("com._1c.v8", "ibis.admin", "1.6.8")
implementation("com._1c.v8", "ibis", "1.1.1")
implementation("com._1c.v8", "ibis.swp", "1.1.1")
implementation("com._1c.v8", "swp", "1.0.2")
implementation("com._1c.v8", "swp.netty", "1.0.2")
implementation("org.awaitility", "awaitility", "4.2.0")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed", "standard_error")
}
reports {
html.required.set(true)
}
}
tasks.check {
dependsOn(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
reports {
xml.required.set(true)
xml.outputLocation.set(File("$buildDir/reports/jacoco/test/jacoco.xml"))
}
}
publishing {
publications {
create<MavenPublication>("ibis-core") {
artifact(file("ibis/lib/com._1c.v8.core-1.0.2.jar")) {
groupId = "com._1c.v8"
artifactId = "core"
version = "1.0.2"
}
}
create<MavenPublication>("ibis-admin") {
artifact(file("ibis/lib/com._1c.v8.ibis.admin-1.6.8.jar")) {
groupId = "com._1c.v8"
artifactId = "ibis.admin"
version = "1.6.8"
}
}
create<MavenPublication>("ibis-swp") {
artifact(file("ibis/lib/com._1c.v8.ibis.swp-1.1.1.jar")) {
groupId = "com._1c.v8"
artifactId = "ibis.swp"
version = "1.1.1"
}
}
create<MavenPublication>("ibis") {
artifact(file("ibis/lib/com._1c.v8.ibis-1.1.1.jar")) {
groupId = "com._1c.v8"
artifactId = "ibis"
version = "1.1.1"
}
}
create<MavenPublication>("swp-netty") {
artifact(file("ibis/lib/com._1c.v8.swp.netty-1.0.2.jar")) {
groupId = "com._1c.v8"
artifactId = "swp.netty"
version = "1.0.2"
}
}
create<MavenPublication>("swp") {
artifact(file("ibis/lib/com._1c.v8.swp-1.0.2.jar")) {
groupId = "com._1c.v8"
artifactId = "swp"
version = "1.0.2"
}
}
}
}
tasks.register<GradleBuild>("publishIbisToMavenLocal") {
group = "publishing"
tasks = listOf(
"publishIbis-adminPublicationToMavenLocal",
"publishIbis-corePublicationToMavenLocal",
"publishIbis-swpPublicationToMavenLocal",
"publishIbisPublicationToMavenLocal",
"publishSwp-nettyPublicationToMavenLocal",
"publishSwpPublicationToMavenLocal"
)
}