-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
79 lines (65 loc) · 1.69 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'eclipse'
id 'idea'
id 'maven-publish'
id 'ivy-publish'
id 'com.gradle.plugin-publish' version '1.1.0'
}
repositories {
mavenLocal()
mavenCentral()
}
group = artifact_group
version = artifact_version
sourceCompatibility = 1.17
targetCompatibility = 1.17
gradlePlugin {
website = 'https://github.com/vontikov/sbe-gradle-plugin/'
vcsUrl = 'https://github.com/vontikov/sbe-gradle-plugin/'
plugins {
gradletestPlugin {
id = 'com.github.vontikov.sbe-generator-plugin'
displayName = 'Simple Binary Encoding plugin'
description = 'Simple Binary Encoding plugin'
tags.addAll('SBE', 'Simple Binary Encoding')
implementationClass = 'com.github.vontikov.SbeGeneratorPlugin'
}
}
}
publishing {
repositories {
mavenLocal()
}
}
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')
}
}
configurations {
all*.exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
dependencies {
testImplementation(platform('org.junit:junit-bom:5.10.0'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation 'org.hamcrest:hamcrest-library:2.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly files(createClasspathManifest)
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
clean.doFirst {
delete "${rootDir}/src/test/resources/projects/generator/build/"
}
defaultTasks 'clean', 'build'