Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
82 lines (65 loc) · 2.34 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
82 lines (65 loc) · 2.34 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
73
74
75
76
77
78
79
80
81
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Kotlin library project to get you started.
*/
import org.gradle.api.publish.PublishingExtension
plugins {
// Apply the Kotlin JVM plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.3.41"
// Apply the java-library plugin for API and implementation separation.
`java-library`
`maven-publish`
}
group = "com.brainera"
version = "1.2.2"
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
// Use the Kotlin JDK 8 standard library.
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("io.swagger.parser.v3:swagger-parser-v3:2.0.17")
implementation("com.j2html:j2html:1.2.0")
implementation("org.apache.commons:commons-collections4:4.4")
implementation("commons-cli:commons-cli:1.4")
implementation("commons-httpclient:commons-httpclient:3.1")
testImplementation("org.assertj:assertj-core:3.13.2")
testImplementation(group = "org.slf4j", name = "slf4j-log4j12", version = "1.7.30")
// junit deps
val junitVersion: String by project
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-params:${junitVersion}")
}
tasks {
test {
useJUnitPlatform()
}
}
val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}
publishing {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
artifact(sourcesJar.get())
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cortexapps/openapi-diff")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_PASSWORD")
}
}
}
}