-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (38 loc) · 1.25 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
base {
archivesName = project.id
version = project.version
}
repositories {
mavenCentral()
maven { url 'https://maven.fabricmc.net/' }
maven { url 'https://repo.spongepowered.org/maven' }
}
dependencies {
compileOnly 'org.apache.logging.log4j:log4j-api:2.15.0'
compileOnly 'org.apache.logging.log4j:log4j-core:2.17.1'
// TRULLY DEPENDENCY
compileOnly project(':')
// MOCKERS
compileOnly project(':lib-neoforge')
compileOnly project(':lib-forge')
compileOnly("net.fabricmc:fabric-loader:${fbversion}") { // FABRIC LOADER SUPPORT
exclude group: 'org.slf4j', module: 'slf4j-api'
}
}
jar {
manifest {
attributes([
"Specification-Title" : name,
"Specification-Vendor" : modauthor,
"Specification-Version" : version,
"Implementation-Title" : name,
"Implementation-Version" : version,
"Implementation-Vendor" : modauthor,
"Implementation-Timestamp" : new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
"ForceLoadAsMod" : "true"
])
}
}
tasks.withType(JavaCompile).configureEach {
dependsOn(project.rootProject.tasks.shadowJar)
}