-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
48 lines (38 loc) · 1.01 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
group 'org.dev4fx.raft'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: "com.github.hierynomus.license"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0"
}
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
task copyLicense(type: Copy) {
from('.')
into('build/resources/main/')
include('LICENSE.md')
rename('LICENSE.md', 'LICENSE.txt')
}
license {
header rootProject.file('src/main/resources/LICENSE.template')
strictCheck true
include "**/*.java"
ignoreFailures true
ext.year = Calendar.getInstance().get(Calendar.YEAR)
}
copyLicense.dependsOn processResources
compileJava.dependsOn licenseFormat,copyLicense
dependencies {
compile 'io.aeron:aeron-all:1.8.0'
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.9.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}