-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (57 loc) · 1.61 KB
/
build.gradle
File metadata and controls
68 lines (57 loc) · 1.61 KB
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
buildscript {
repositories {
maven{
url = "https://www.jitpack.io"
}
google()
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
}
}
apply plugin: "java-gradle-plugin"
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: "kotlin-kapt"
group = 'com.zzt.demo'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation gradleApi()
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.6.21")
implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:1.6.21")
implementation "com.google.auto.service:auto-service:1.0.1"
kapt "com.google.auto.service:auto-service:1.0.1"
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit:1.6.21'
testImplementation("com.github.tschuchortdev:kotlin-compile-testing:1.4.8")
}
gradlePlugin {
plugins {
create("MethodPerfPlugin") {
id = 'com.zzt.demo'
implementationClass = 'com.zzt.demo.MethodPerfIRPlugin'
}
}
}
ext {
kotlin_plugin_id = "com.zzt.demo.kt-method-perf-plugin"
artifactId = "kt-method-perf-plugin"
group = "$rootProject.group"
version = "$rootProject.version"
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}