-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
76 lines (62 loc) · 1.9 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.gradle.api.tasks.SourceSet
import java.net.HttpURLConnection
group = "com.alexleventer.gradle"
version = "1.0.4"
apply {
plugin("java")
plugin("kotlin")
}
buildscript {
var kotlinVersion: String by extra
kotlinVersion = "1.2.30"
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath(kotlinModule("gradle-plugin", kotlinVersion))
classpath("com.squareup.okhttp3:okhttp:3.10.0")
classpath("com.google.code.gson:gson:2.8.2")
classpath(gradleApi())
}
}
plugins {
java
id("com.gradle.plugin-publish") version "0.9.7"
}
java.sourceSets["test"].withConvention(KotlinSourceSet::class) {
kotlin.srcDir(file("src/test/kotlin"))
}
val kotlinVersion: String by extra
repositories {
jcenter()
}
dependencies {
compile(kotlinModule("stdlib-jdk8", kotlinVersion))
compile("com.squareup.okhttp3:okhttp:3.10.0")
compile("com.google.code.gson:gson:2.8.2")
implementation(gradleApi())
testCompile("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
testCompile("junit:junit:4.12")
testCompile("org.mockito:mockito-core:2.10.0")
testCompile("org.assertj:assertj-core:3.8.0")
testCompile("com.nhaarman:mockito-kotlin-kt1.1:1.5.0")
testRuntime(gradleKotlinDsl())
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
pluginBundle {
website = "https://github.com/alexleventer/gradle-slack-plugin"
vcsUrl = "https://github.com/alexleventer/gradle-slack-plugin"
(plugins) {
"SlackPlugin" {
id = "com.alexleventer.slack"
displayName = "Gradle Slack Plugin"
description = "Post messages to Slack after your Gradle builds complete"
tags = listOf("gradle", "slack", "kotlin")
}
}
}