forked from Mojang/LegacyLauncher
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
40 lines (34 loc) · 986 Bytes
/
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
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
group = 'optifine'
archivesBaseName = 'launchwrapper-of'
version = '2.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile 'net.sf.jopt-simple:jopt-simple:4.5'
compile 'org.apache.logging.log4j:log4j-api:2.11.0'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
}
jar {
manifest {
attributes(
'Implementation-Version' : version,
'Implementation-Vendor' : "OptiFine",
'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Created-By' : "Gradle ${gradle.gradleVersion}"
)
}
}