-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (34 loc) · 1.16 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
plugins {
id 'java'
id("org.jetbrains.kotlin.jvm") version "1.9.0"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.0"
}
group 'nion.network'
version '0.1'
configurations.implementation.setCanBeResolved(true)
repositories {
mavenCentral()
}
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter-api:5.8.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.8.1')
implementation('org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.0')
implementation('org.jetbrains.kotlinx:kotlinx-serialization-protobuf:1.3.0')
implementation('org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0')
implementation("com.influxdb:influxdb-client-kotlin:4.0.0")
implementation('org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt')
}
tasks.withType(Test).configureEach {
it.scanForTestClasses = false
it.useJUnitPlatform()
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
setArchivesBaseName("Nion-Network")
manifest {
attributes.put("Main-Class", "LaunchKt")
}
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
}