forked from FAForever/Neroxis-Map-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (69 loc) · 2.01 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
group 'net.neroxis'
version 'SNAPSHOT'
sourceCompatibility = 1.14
sourceSets {
main {
java {
srcDirs = ['src/java']
}
resources {
srcDirs = ['src/resources']
}
}
}
repositories {
maven { url "https://jitpack.io" }
mavenCentral()
}
dependencies {
implementation("com.github.FAForever:faf-java-commons:0b83fa48a039cea085a7d462cc937fb5a035c186") {
exclude module: 'guava'
exclude module: 'faf-commons-api'
}
implementation("org.luaj:luaj-jse:3.0.1")
implementation("com.google.guava:guava:28.0-jre")
compileOnly('org.projectlombok:lombok:1.18.14')
annotationProcessor('org.projectlombok:lombok:1.18.14')
implementation('com.google.code.gson:gson:2.8.5')
testCompile('junit:junit:4.11')
}
shadowJar {
manifest {
attributes 'Main-Class': 'generator.MapGenerator'
}
}
task populatorJar(type: ShadowJar) {
archiveBaseName = 'MapPopulator'
from(sourceSets.main.output) {
manifest {
attributes 'Main-Class': 'populator.MapPopulator'
}
}
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
}
task evaluatorJar(type: ShadowJar) {
archiveBaseName = 'MapEvaluator'
from(sourceSets.main.output) {
manifest {
attributes 'Main-Class': 'evaluator.MapEvaluator'
}
}
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
}
task transformerJar(type: ShadowJar) {
archiveBaseName = 'MapTransformer'
from(sourceSets.main.output) {
manifest {
attributes 'Main-Class': 'transformer.MapTransformer'
}
}
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
}