-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (53 loc) · 1.57 KB
/
build.gradle
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
plugins {
id 'maven-publish'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.10.0'
id 'org.jetbrains.kotlin.jvm' version '1.2.60'
}
group 'com.github.h0tk3y.gradle.eval'
version '0.0.4'
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile 'org.jline:jline:3.9.0'
compile 'net.java.dev.jna:jna:4.5.2'
testCompile 'junit:junit:4.12'
testCompile gradleTestKit()
}
gradlePlugin {
plugins {
evalPlugin {
id = 'com.github.h0tk3y.gradle.eval'
implementationClass = 'com.github.h0tk3y.gradle.eval.GradleEvalPlugin'
}
}
}
pluginBundle {
website = 'https://github.com/h0tk3y/gradle-eval-plugin'
vcsUrl = 'https://github.com/h0tk3y/gradle-eval-plugin.git'
tags = ['gradle', 'repl', 'eval', 'groovy']
plugins {
evalPlugin {
displayName = 'eval'
description = 'A Gradle plugin that evaluates a string passed from the command line in the project context'
version = project.version
}
}
}
// testing
// Write the plugin's classpath to a file to share with the tests
task createClasspathManifest {
def outputDir = file("$buildDir/$name")
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
}
}
// Add the classpath file to the test runtime classpath
dependencies {
testRuntime files(createClasspathManifest)
}