-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
55 lines (47 loc) · 1.57 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
`maven-publish`
}
group = "io.github.omkar-tenkale"
version = "0.2.0"
repositories {
mavenCentral()
}
dependencies {
val ktor_version = "2.2.1"
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-server-webjars:$ktor_version")
implementation("io.ktor:ktor-server-auth:$ktor_version")
testImplementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
testImplementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-server-status-pages:$ktor_version")
testImplementation("io.ktor:ktor-serialization-jackson:$ktor_version")
testImplementation("io.ktor:ktor-server-auth:$ktor_version")
testImplementation("io.ktor:ktor-server-call-logging:$ktor_version")
testImplementation("io.ktor:ktor-server-test-host:$ktor_version")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
artifactId = "ktor-role-based-auth"
from(components["java"])
pom {
name.set("Ktor Role Based Auth")
description.set("Ktor plugin to easily handle role based authorization ")
url.set("https://github.com/omkar-tenkale/ktor-role-based-auth")
}
}
}
}