-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.14 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
base
kotlin("jvm") version "1.3.11"
id("biz.aQute.bnd.builder") version "4.1.0"
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.osgi:osgi.core:7.0.0")
}
}
version = "1.0-SNAPSHOT"
// Genereal setup for every project (including this one)
allprojects {
// Set default group and version
group = "org.osgi.kt"
// Set jvm target to 1.8
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
}
// Configure subprojects
subprojects {
// Setup default repositories
repositories {
mavenCentral()
// Repo for Spek
maven {
url = uri("https://dl.bintray.com/spekframework/spek-dev")
}
}
// Check if this is a bundle project
if (this.projectDir.parent.endsWith("bundles")) {
// Applies the kotlin and bnd plugin to every bundle project
apply {
plugin("org.jetbrains.kotlin.jvm")
plugin("biz.aQute.bnd.builder")
}
}
}
tasks.withType<Wrapper> {
gradleVersion = "4.10.3"
}