-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (36 loc) · 1022 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
46
plugins {
kotlin("jvm") version "1.5.10"
java
`maven-publish`
`java-library`
}
group = "com.vandenbreemen"
version = "1.1.1.0000"
repositories {
mavenCentral()
}
dependencies {
val sqlite_version = "3.44.1.0"
implementation(kotlin("stdlib"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
val log4jVersion = "1.2.14"
implementation("log4j:log4j:$log4jVersion")
implementation("org.xerial:sqlite-jdbc:$sqlite_version")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
// Based on https://github.com/gradle/kotlin-dsl-samples/blob/master/samples/maven-publish/build.gradle.kts
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}
publishing {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
artifact(sourcesJar.get())
}
}
}