-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
89 lines (78 loc) · 2.71 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
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
val kotlinVersion: String by project
plugins {
`maven-publish`
id("com.jfrog.bintray") version "1.8.4"
kotlin("jvm") version("1.4.10")
}
group = "pl.pjagielski"
version = "0.4.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.3.3")
implementation("org.http4k", "http4k-core", "3.285.0")
implementation("org.http4k", "http4k-server-jetty", "3.285.0") {
exclude("org.slf4j", "slf4j-api")
}
implementation("org.http4k", "http4k-format-jackson", "3.285.0")
api("org.jetbrains.kotlin", "kotlin-scripting-common", kotlinVersion)
api("org.jetbrains.kotlin", "kotlin-scripting-compiler-embeddable", kotlinVersion)
api("org.jetbrains.kotlin", "kotlin-scripting-jvm", kotlinVersion)
api("org.jetbrains.kotlin", "kotlin-scripting-jvm-host", kotlinVersion)
api("org.jetbrains.kotlin", "kotlin-script-runtime", kotlinVersion)
api("org.jetbrains.kotlin", "kotlin-compiler-embeddable", kotlinVersion)
api("io.github.microutils", "kotlin-logging", "1.7.9")
api("com.uchuhimo", "konf", "0.22.1")
api("com.illposed.osc", "javaosc-core", "0.6") {
exclude("org.slf4j", "slf4j-log4j12")
}
testImplementation("org.junit.jupiter", "junit-jupiter", "5.6.0")
testImplementation("com.willowtreeapps.assertk", "assertk-jvm", "0.23")
testApi("org.slf4j","slf4j-simple","1.7.29")
}
val sourcesJar by tasks.creating(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.getByName("main").allSource)
}
publishing {
publications {
create("lib", MavenPublication::class) {
groupId = "pl.pjagielski"
artifactId = "punkt"
from(components["java"])
artifact(sourcesJar)
}
}
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
bintray {
user = project.findProperty("bintray.user") as String? ?: System.getenv("USERNAME")
key = project.findProperty("bintray.key") as String? ?: System.getenv("TOKEN")
publish = true
setPublications("lib")
pkg.apply {
repo = "punkt"
name = "punkt"
userOrg = "punkt"
githubRepo = "pjagielski/punkt"
vcsUrl = "https://github.com/pjagielski/punkt"
description = "Live music coding library/environment for Kotlin"
setLabels("kotlin")
setLicenses("Apache-2.0")
desc = description
}
}