-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathbuild.gradle.kts
47 lines (41 loc) · 1.24 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libsx.plugins.kotlinJvm)
application
}
// Explicitly adding the plugin to the classpath as it makes it easier to control the version
// centrally (don't need version in the 'plugins' block). Further, snapshots are not published with
// marker interface so would need to be added to the classpath manually anyway.
buildscript {
dependencies {
classpath(libsx.realm.plugin)
}
}
apply(plugin = "io.realm.kotlin")
group = "io.realm.example"
version = "1.0.0"
repositories {
mavenCentral()
// Only required for realm-kotlin snapshots
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
implementation("com.jakewharton.fliptables:fliptables:1.1.0")
implementation(libsx.realm.base)
testImplementation(kotlin("test-junit"))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
application {
mainClassName = "io.realm.example.MainKt"
}
tasks.jar {
manifest {
attributes["Main-Class"] = "io.realm.example.MainKt"
}
configurations["runtimeClasspath"].forEach { file: File ->
from(zipTree(file.absoluteFile))
}
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}