-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (60 loc) · 1.35 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "2.1.8.RELEASE"
id("io.spring.dependency-management") version "1.0.8.RELEASE"
kotlin("jvm") version "1.3.50"
kotlin("plugin.spring") version "1.3.50"
`java-library`
`maven-publish`
}
group = "com.allali84"
version = "1.0.0-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
mavenCentral()
jcenter()
//maven {
// url = uri("http://localhost/nexus/content/groups/public")
//}
}
dependencyManagement {
dependencies {
imports {
mavenBom("org.springframework.cloud:spring-cloud-dependencies:Greenwich.RELEASE")
}
dependencySet("io.swagger:1.5.12") {
entry("swagger-annotations")
entry("swagger-jaxrs")
}
dependencySet("org.elasticsearch:6.2.1") {
entry("elasticsearch")
entry("transport")
entry("elasticsearch-rest-client")
entry("elasticsearch-rest-high-level-client")
}
dependency("javax.ws.rs:javax.ws.rs:2.1")
dependency("javax:javaee-api:8.0.1")
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}
tasks.bootJar {
enabled = false
}
publishing {
publications {
create<MavenPublication>("myBom") {
}
}
repositories {
maven {
name = "myRepo"
url = uri("file://${buildDir}/repo")
}
}
}