-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
49 lines (40 loc) · 1.26 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
plugins {
id 'groovy'
id("com.gradle.plugin-publish") version "1.2.1"
id 'com.palantir.git-version' version '3.0.0'
}
repositories {
mavenCentral()
}
group = 'com.zlad.gradle'
version = resolveVersion()
dependencies {
implementation "com.julianpeeters:avrohugger-core_$scalaBinaryVersion:$avrohuggerVersion"
implementation "com.julianpeeters:avrohugger-filesorter_$scalaBinaryVersion:$avrohuggerVersion"
testImplementation("org.spockframework:spock-junit4:$spockVersion")
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
}
test {
useJUnitPlatform()
}
gradlePlugin {
website = 'https://github.com/zladovan/gradle-avrohugger-plugin'
vcsUrl = 'https://github.com/zladovan/gradle-avrohugger-plugin.git'
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.'
tags.set(['scala', 'avro'])
}
}
}
def resolveVersion() {
def details = versionDetails()
"${details.lastTag.replaceAll('^v', '')}" as String
}