📄 Update year in copyright line
[jSite.git] / build.gradle
1 apply plugin: 'java'
2
3 group = 'net.pterodactylus'
4 version = '0.14'
5
6 repositories {
7      maven { url "http://maven.pterodactylus.net/" }
8      maven { url "http://repo.maven.apache.org/maven2" }
9 }
10
11 dependencies {
12     compile group: 'net.pterodactylus', name: 'utils', version: '0.13'
13
14     testCompile group: 'junit', name: 'junit', version: '4.12'
15     testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
16     testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
17 }
18
19 sourceCompatibility = 1.8
20 targetCompatibility = 1.8
21
22 apply plugin: 'application'
23
24 mainClassName = 'de.todesbaum.jsite.main.Main'
25
26 task fatJar(type: Jar) {
27     archiveName = "${project.name}-${project.version}-jar-with-dependencies.jar"
28     from {
29         configurations.runtime.collect {
30             it.isDirectory() ? it : zipTree(it)
31         } 
32     }
33     manifest {
34         attributes('Main-Class': 'de.todesbaum.jsite.main.Main')
35     }
36     with jar
37 }
38
39 apply plugin: 'jacoco'
40
41 jacoco {
42     toolVersion = '0.7.7.201606060606'
43 }
44
45 jacocoTestReport.dependsOn test
46