-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
57 lines (46 loc) · 1.09 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
plugins {
id 'java'
}
apply from: file('TVETest/TerminalVelocityEngine2/gradleScripts/repositories.gradle')
sourceSets {
client {
java {
srcDirs("src/client")
}
}
server {
java {
srcDirs("src/server")
}
}
common {
java {
srcDirs("src/common")
}
}
}
configurations {
serverImplementation.extendsFrom(commonImplementation)
clientImplementation.extendsFrom(commonImplementation)
}
dependencies {
//Client Game Deps
clientImplementation project(':GameClient')
clientImplementation sourceSets.common.output
//Server Game Deps
serverImplementation project(':GameServer')
serverImplementation sourceSets.common.output
//Common Deps
commonImplementation project(':GameCommon')
}
jar {
from sourceSets.client.output
from sourceSets.server.output
from sourceSets.common.output
}
tasks.register('devModJar', Jar) {
destinationDirectory.set(file("/TVETest/mods"))
with jar
}
group 'com.terminalvelocitycabbage.testmod'
version '1.0-SNAPSHOT'