-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
45 lines (37 loc) · 1.23 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
plugins {
id 'groovy'
id 'java-gradle-plugin'
id 'com.gradle.plugin-publish' version '0.11.0'
id 'com.palantir.git-version' version '3.0.0'
}
repositories {
mavenCentral()
}
group = 'com.zlad.gradle'
version = resolveVersion()
dependencies {
implementation "com.julianpeeters:avrohugger-core_$scalaMajorVersion:$avrohuggerVersion"
implementation "com.julianpeeters:avrohugger-filesorter_$scalaMajorVersion:$avrohuggerVersion"
testImplementation("org.spockframework:spock-core:$spockVersion") {
exclude group: 'org.codehaus.groovy'
}
}
gradlePlugin {
plugins {
avrohuggerPlugin {
id = 'com.zlad.gradle.avrohugger'
implementationClass = 'com.zlad.gradle.avrohugger.AvrohuggerPlugin'
displayName = 'Gradle avrohugger plugin'
description = 'Plugin for generating scala case classes from apache avro schemas, datafiles and protocols.'
}
}
}
pluginBundle {
website = 'https://github.com/zladovan/gradle-avrohugger-plugin'
vcsUrl = 'https://github.com/zladovan/gradle-avrohugger-plugin.git'
tags = ['scala', 'avro']
}
def resolveVersion() {
def details = versionDetails()
"${details.lastTag.replaceAll('^v', '')}" as String
}