This repository was archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (73 loc) · 2.05 KB
/
Copy pathbuild.gradle
File metadata and controls
87 lines (73 loc) · 2.05 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
82
83
84
85
86
87
import org.jetbrains.dokka.gradle.DokkaTask
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.5.20'
id 'org.jetbrains.dokka' version '1.4.32'
id 'maven-publish'
}
String ktorVersion = "1.5.3"
group = 'com.sultanofcardio'
version = "1.0.0"
repositories {
mavenCentral()
maven { url "https://kotlin.bintray.com/ktor" }
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
archiveClassifier.set('javadoc')
from javadoc.destinationDir
}
publishing {
repositories {
maven {
name "sultanofcardio"
credentials {
username System.getenv("username")
password System.getenv("password")
}
url "https://repo.sultanofcardio.com/artifactory/sultanofcardio"
}
}
publications {
binary(MavenPublication) {
artifactId "${project.name}"
version version
from components.java
artifact javadocJar
artifact sourcesJar
}
snapshot(MavenPublication) {
artifactId "${project.name}"
version "${version}-SNAPSHOT"
from components.java
artifact javadocJar
artifact sourcesJar
}
}
}
dependencies {
api "io.ktor:ktor-server-core:$ktorVersion"
api "io.ktor:ktor-auth:$ktorVersion"
api "io.ktor:ktor-auth-jwt:$ktorVersion"
api 'org.json:json:20201115'
api 'org.yaml:snakeyaml:1.21'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testImplementation "io.ktor:ktor-server-tests:$ktorVersion"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.0'
}
test {
useJUnitPlatform()
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}