This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (78 loc) · 2.19 KB
/
build.gradle
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
plugins {
id "org.jetbrains.dokka" version "1.4.0"
id "org.jetbrains.kotlin.jvm" version "1.4.20"
id "com.github.johnrengelman.shadow" version "6.0.0"
id "maven-publish"
}
def javaVersion = JavaVersion.VERSION_1_8
group "com.gigadrivegroup"
version "1.2"
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
api "commons-io:commons-io:2.4"
api "com.google.code.gson:gson:2.8.5"
api "org.koin:koin-core:2.2.0"
// http
api "com.github.kittinunf.fuel:fuel:2.3.1"
api "com.github.kittinunf.fuel:fuel-gson:2.3.1"
implementation "com.zaxxer:HikariCP:2.6.1"
implementation "mysql:mysql-connector-java:5.1.6"
compileOnly "org.projectlombok:lombok:1.18.16"
annotationProcessor "org.projectlombok:lombok:1.18.16"
testCompileOnly "org.projectlombok:lombok:1.18.16"
testAnnotationProcessor "org.projectlombok:lombok:1.18.16"
implementation "org.jetbrains.kotlin:kotlin-stdlib"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
test {
useJUnitPlatform()
}
kotlin {
explicitApi()
}
java {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
withJavadocJar()
withSourcesJar()
}
task dokkaJavadocJar(type: Jar, dependsOn: dokkaJavadoc) {
archiveClassifier.set("javadoc")
from new File(buildDir, "/dokka/javadoc/")
}
task dokkaSourcesJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.allSource
}
tasks.shadowJar {
minimize() // only shades the classes that are actually needed
}
tasks.build {
dependsOn(shadowJar)
}
publishing {
publications {
library(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://gitlab.com/api/v4/projects/23841941/packages/maven"
name "GitLab"
credentials(HttpHeaderCredentials) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}