-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
84 lines (67 loc) · 2.07 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
import com.gradle.publish.PluginBundleExtension
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(kotlin("gradle-plugin",version="1.3.30") )
classpath("com.gradle.publish:plugin-publish-plugin:0.10.1")
}
}
plugins{
kotlin("jvm") version("1.3.30")
java
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.10.1"
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.squareup.moshi:moshi-kotlin:1.8.0")
testImplementation("junit:junit:4.12")
testImplementation("com.google.truth:truth:0.44")
testImplementation(gradleTestKit())
}
//(tasks.findByName("test") as Test).useJUnitPlatform()
group = "com.prashamhtrivedi"
version = "0.1"
val gradlePlugin = configure<GradlePluginDevelopmentExtension> {
plugins {
create("roomUpgradeHelper"){
id = "com.prashamhtrivedi.roomupgradehelper"
implementationClass = "com.prashamhtrivedi.roomupgradehelper.RoomUpgradeHelperPlugin"
displayName = "Room Upgrade Helper"
description="A Gradle plugin to help you finding out right queries when you upgrade your room schemas."
}
}
}
configure<PluginBundleExtension> {
website = "https://github.com/PrashamTrivedi/RoomUpgradeHelper"
vcsUrl = "https://github.com/PrashamTrivedi/RoomUpgradeHelper"
tags = listOf("Room","Upgrade")
}
//pluginBundle {
// website = "https://github.com/runningcode/fladle"
// vcsUrl = "https://github.com/runningcode/fladle"
// tags = listOf("flank", "testing", "android", "fladle")
//
// mavenCoordinates {
// artifactId = "fladle"
// groupId = group
// }
//}
//intellij {
// version '2018.1'
// sandboxDirectory = "$project.buildDir/myCustom-sandbox"
// pluginName 'RoomUpgradeHelper'
//}
//patchPluginXml {
// changeNotes """
// Add change notes here.<br>
// <em>most HTML tags may be used</em>"""
//}