-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·50 lines (43 loc) · 1.42 KB
/
build.gradle
File metadata and controls
executable file
·50 lines (43 loc) · 1.42 KB
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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
version = '1.8'
group = 'me.nallar'
archivesBaseName = 'JavaPatcher'
// Extended project information
ext.projectName = 'JavaPatcher'
ext.inceptionYear = '2014'
ext.packaging = 'jar'
ext.url = 'http://nallar.me/minecraft'
ext.description = 'Java Patcher'
ext.organization = 'nallar.me'
// Define variables
ext.buildNumber = System.getenv("BUILD_NUMBER") ?: 0
ext.ciSystem = System.getenv("JENKINS_URL") ? 'Jenkins' : 'unknown'
ext.commit = System.getenv("GIT_COMMIT") ?: 'unknown'
// Source compiler configuration
tasks.withType(JavaCompile) {
sourceCompatibility = 7
targetCompatibility = 7
options.with {
encoding = 'UTF-8'
compilerArgs << "-Xlint:all" << '-Xlint:-path' << '-Xlint:-classfile' << '-Xlint:-processing'
}
}
repositories {
jcenter()
}
dependencies {
compile 'org.apache.logging.log4j:log4j-core:2.0.2'
compile 'com.google.guava:guava:18.0'
compile 'org.javassist:javassist:3.21.0-GA'
compile 'org.json:json:20090211'
compileOnly 'org.projectlombok:lombok:1.16.16'
testCompileOnly 'org.projectlombok:lombok:1.16.16'
}
jar.manifest.mainAttributes(
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": name,
"Implementation-Version": version + "+" + ciSystem + "-b" + buildNumber + ".git-" + commit,
"Implementation-Vendor": url)