-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (57 loc) · 1.6 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.50" // apply false
`maven-publish`
publishing
}
repositories {
mavenCentral()
}
subprojects {
apply(plugin = "java")
apply(plugin = "kotlin")
apply(plugin = "maven-publish")
group = "nav-foedselsnummer"
version = "1.0-SNAPSHOT.6"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("junit:junit:4.12")
testImplementation("org.assertj:assertj-core:3.13.2")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
publishing {
repositories {
maven {
name = "Github"
url = uri("https://maven.pkg.github.com/navikt/nav-foedselsnummer")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GPR_USER")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GPR_API_KEY")
}
}
}
publications {
register("jar", org.gradle.api.publish.maven.MavenPublication::class) {
from(components["java"])
pom {
url.set("https://github.com/navikt/nav-foedselsnummer.git")
}
}
}
}
}
project(":core") {
dependencies {
compile("com.fasterxml.jackson.core:jackson-annotations:2.10.0")
}
}
project(":testutils") {
dependencies {
implementation(project(":core"))
}
}