-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
61 lines (50 loc) · 1.43 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
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "8.1.0"
}
group = "com.eternalcode"
version = "1.0.0"
val artifactId = "gitcheck"
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_9
targetCompatibility = JavaVersion.VERSION_1_9
}
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
api("com.googlecode.json-simple:json-simple:1.1.1") {
exclude(group = "junit")
}
api("org.jetbrains:annotations:24.0.1")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
testImplementation("nl.jqno.equalsverifier:equalsverifier:3.14.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "$group"
artifactId = artifactId
version = "${project.version}"
from(components["java"])
}
}
repositories {
maven {
name = "eternalcode-repository"
url = uri("https://repo.eternalcode.pl/releases")
credentials {
username = System.getenv("ETERNALCODE_REPO_USERNAME")
password = System.getenv("ETERNALCODE_REPO_PASSWORD")
}
}
}
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}