mirrored from https://gitlab.com/Elypia/commandler-gradle-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
83 lines (67 loc) · 1.8 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
80
81
82
83
plugins {
id "maven"
id "jacoco"
id "java-gradle-plugin"
id "com.gradle.plugin-publish" version "0.10.1"
}
group = "org.elypia.commandler"
version = "1.2.1"
description = "Commandler is a abstract command handling framework for dispatching events."
sourceCompatibility = 11
targetCompatibility = 11
ext {
commandlerVersion = "4.0.0"
}
[compileJava, compileTestJava, javadoc]*.options*.encoding = "UTF-8"
repositories {
mavenLocal()
jcenter()
}
dependencies {
// TODO: Temp until Commandler fixes why this is required.
implementation "org.yaml:snakeyaml:1.25"
// Commandler
implementation "org.elypia.commandler:core:${commandlerVersion}"
implementation "org.elypia.commandler:doc:${commandlerVersion}"
// Logging
implementation "org.slf4j:slf4j-api:1.7.30"
testRuntimeOnly "ch.qos.logback:logback-classic:1.2.3"
// Testing
testImplementation "org.junit.jupiter:junit-jupiter:5.6.0"
testImplementation "org.mockito:mockito-core:3.2.4"
}
/** Testing */
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
reports {
html.enabled = false
}
}
/** Code Coverage */
jacoco {
toolVersion = "0.8.5"
}
jacocoTestReport {
reports {
html.enabled = true
xml.enabled = false
}
}
/** Gradle Plugin */
gradlePlugin {
plugins {
commandler {
id = 'org.elypia.commandler'
displayName = 'Commandler Gradle Plugin'
description = 'Post compilation utilities to get more out of Commandler.'
implementationClass = 'org.elypia.commandler.CommandlerPlugin'
}
}
}
/** Publish Gradle Plugin */
pluginBundle {
website = 'https://elypia.org/'
vcsUrl = 'https://gitlab.com/Elypia/commandler-gradle-plugin'
tags = ['commandler', 'gradle', 'java']
}