-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
81 lines (69 loc) · 1.8 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
plugins {
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java'
id 'idea'
}
configurations {
shade
}
allprojects {
repositories {
mavenCentral()
maven { url 'https://libraries.minecraft.net' }
}
}
subprojects {
apply plugin: 'java'
group = rootProject.group
version = rootProject.version
archivesBaseName = rootProject.archives_base_name
configurations {
jarz {}
}
dependencies {
implementation "org.jetbrains:annotations:$annotations_version"
if ( project.name != 'loadercomplex-common' ) {
compileOnly( project( path: ':loadercomplex-common' ) ) {
transitive = false
}
}
}
}
def subProjects = new ArrayList<>();
for ( Project proj : rootProject.subprojects ) {
subProjects.add( proj.getName() )
}
dependencies {
for ( String proj : subProjects ) {
shade( project( path: proj, configuration: 'jarz' ) ) {
transitive = false
}
}
shade "com.mojang:brigadier:$brigadier_version"
shade "blue.endless:jankson:$jankson_version"
}
shadowJar {
configurations = [ project.configurations.shade ]
from sourceSets.main.allSource
classifier ''
}
jar {
from 'LICENSE'
//noinspection GroovyAssignabilityCheck
manifest {
attributes(
'Specification-Title' : 'LoaderComplex',
'Specification-Vendor' : 'ENDERZOMBI102',
'Specification-Version' : '1', // We are version 1 of ourselves
'Implementation-Title' : name,
'Implementation-Version' : version,
'Implementation-Vendor' : 'ENDERZOMBI102',
'Implementation-Timestamp': new Date().format("dd-MM-yyyy'T'HH:mm:ssZ"),
'ApiVersion': api_version,
// 'FMLCorePlugin': 'com.enderzombi102.loadercomplex.forge12.LoaderComplexCoremod'
)
}
}
artifacts {
archives shadowJar
}