forked from reusu/FFXIVChnTextPatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (77 loc) · 2.13 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
buildscript {
ext {
kotlinVersion = '1.3.11'
springBootVersion = '2.1.0.RELEASE'
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
}
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'application'
sourceSets {
main {
java.srcDir('src/main/java')
resources.srcDir('src/main/resources')
java.outputDir = file('build/bin')
output.resourcesDir = file('build/bin')
}
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
}
dependencies {
testCompile(
'junit:junit:4.12'
)
compile("com.jcraft:jzlib:1.1.3")
compile("org.nlpcn:nlp-lang:1.7.6")
compile("com.google.code.gson:gson:2.8.5")
compile("commons-codec:commons-codec:1.11")
compile("org.apache.httpcomponents:httpcore:4.4.6")
compile("org.apache.httpcomponents:httpclient:4.5.3")
compile("org.apache.httpcomponents:httpclient-cache:4.5.3")
compile("org.apache.httpcomponents:httpmime:4.5.3")
compile("org.apache.httpcomponents:fluent-hc:4.5.3")
}
mainClassName = "name.yumao.ffxiv.chn.FFXIVPatchMain"
jar {
manifest {
attributes(
'Main-Class': 'org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader',
'Class-Path': './ ' + configurations.compile.collect { it.getName() }.join(' '),
'Rsrc-Main-Class': mainClassName,
)
}
from {
// zip compile jar
configurations.compile.collect { it }
// zip extra compile jar
// configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task copyLibs(type: Copy) {
from configurations.compile
from 'lib'
into 'build/lib'
}
tasks.withType(GroovyCompile) {
groovyOptions.encoding = "MacRoman"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}