-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (36 loc) · 925 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
kotlin("jvm") version "1.8.0"
`maven-publish`
}
group = "info.skyblond"
version = "v1.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation("net.java.dev.jna:jna:5.12.1")
implementation("net.java.dev.jna:jna-platform:5.12.1")
testImplementation(kotlin("test"))
testImplementation("org.pcap4j:pcap4j-core:1.8.2")
testImplementation("org.pcap4j:pcap4j-packetfactory-static:1.8.2")
testImplementation("ch.qos.logback:logback-classic:1.4.5")
}
tasks.test {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
publishing {
publications {
create<MavenPublication>("maven"){
from(components["java"])
}
}
}