-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (56 loc) · 1.31 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'jbyoshi'
archivesBaseName = 'blockdodge'
version = '1.5-SNAPSHOT'
buildscript {
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.10.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
apply plugin: 'license'
defaultTasks 'licenseFormat', 'build'
license {
header file('gradle/HEADER.txt')
include '**/*.java'
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
processResources {
// Include in final JAR
from 'LICENSE.txt'
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
apply plugin: 'application'
mainClassName = 'jbyoshi.blockdodge.gui.BlockDodge'
jar{manifest{attributes('Main-Class': mainClassName)}}
apply plugin: 'com.github.johnrengelman.shadow'
build.dependsOn shadowJar
shadowJar.dependsOn jar
shadowJar.classifier = ''
dependencies {
compile 'com.google.code.gson:gson:2.4'
}
repositories {
mavenCentral()
mavenLocal()
}
// For updater
processResources {
from('src/main/resources') {
include 'jbyoshi/blockdodge/updater/version.txt'
expand(version: project.version)
}
inputs.property('version', project.version)
}