@@ -12,14 +12,32 @@ apply plugin: 'net.minecraftforge.gradle.forge'
12
12
apply plugin : ' com.github.johnrengelman.shadow'
13
13
apply plugin : ' eclipse'
14
14
15
+ sourceSets {
16
+ main. java. srcDirs = [' src/main/java' , ' ../DynmapCore/src/main/java' , ' ../DynmapCoreAPI/src/main/java' ]
17
+ main. resources. srcDirs = [' src/main/resources' , ' ../DynmapCore/src/main/resources' , ' ../DynmapCoreAPI/src/main/resources' ]
18
+ }
19
+
15
20
eclipse {
16
21
project {
17
22
name = " Dynmap(Forge-Legacy-1.12.2)"
18
23
}
19
24
}
20
25
21
26
dependencies {
22
- implementation project(path : " :DynmapCore" , configuration : " shadow" )
27
+ implementation ' javax.servlet:javax.servlet-api:3.1'
28
+ implementation' org.eclipse.jetty:jetty-server:9.4.26.v20200117'
29
+ implementation ' org.eclipse.jetty:jetty-servlet:9.4.26.v20200117'
30
+ implementation ' com.googlecode.json-simple:json-simple:1.1.1'
31
+ implementation ' org.yaml:snakeyaml:1.23' // DON'T UPDATE - NEWER ONE TRIPS ON WINDOWS ENCODED FILES
32
+ implementation ' com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20180219.1'
33
+ implementation ' org.postgresql:postgresql:42.2.18'
34
+ implementation ' io.github.linktosriram.s3lite:core:0.0.2-SNAPSHOT'
35
+ implementation ' io.github.linktosriram.s3lite:api:0.0.2-SNAPSHOT'
36
+ implementation ' io.github.linktosriram.s3lite:http-client-url-connection:0.0.2-SNAPSHOT'
37
+ implementation ' io.github.linktosriram.s3lite:http-client-spi:0.0.2-SNAPSHOT'
38
+ implementation ' io.github.linktosriram.s3lite:util:0.0.2-SNAPSHOT'
39
+ implementation ' jakarta.xml.bind:jakarta.xml.bind-api:3.0.1'
40
+ implementation ' com.sun.xml.bind:jaxb-impl:3.0.0'
23
41
implementation ' com.googlecode.json-simple:json-simple:1.1.1'
24
42
implementation ' org.yaml:snakeyaml:1.23'
25
43
implementation ' org.spongepowered:spongeapi:7.0.0'
@@ -46,31 +64,53 @@ minecraft {
46
64
47
65
project. archivesBaseName = " ${ project.archivesBaseName} -forge-1.12.2"
48
66
49
- processResources
50
- {
67
+ processResources {
51
68
// replace stuff in mcmod.info, nothing else
52
- from(sourceSets. main. resources. srcDirs) {
53
- include ' mcmod.info'
54
-
69
+ filesMatching([
70
+ ' core.yml' ,
71
+ ' lightings.txt' ,
72
+ ' perspectives.txt' ,
73
+ ' shaders.txt' ,
74
+ ' mcmod.info' ,
75
+ ' extracted/web/version.js' ,
76
+ ' extracted/web/index.html' ,
77
+ ' extracted/web/login.html'
78
+ ]) {
55
79
// replace version and mcversion
56
80
expand(
57
- version : project. version + ' -' + project. ext. buildNumber,
81
+ buildnumber : project. parent. ext. globals. buildNumber,
82
+ version : project. version,
58
83
mcversion : " 1.12.2"
59
- )
84
+ )
60
85
}
61
-
62
- // copy everything else, thats not the mcmod.info
63
- from(sourceSets. main. resources. srcDirs) {
64
- exclude ' mcmod.info'
65
- }
66
- // Move access transformer to META-INF
67
- rename ' (.+_at.cfg)' , ' META-INF/$1'
68
86
}
69
87
70
88
shadowJar {
71
89
dependencies {
72
- include(dependency(' :DynmapCore' ))
73
- }
90
+ include(dependency(' com.googlecode.json-simple:json-simple:' ))
91
+ include(dependency(' org.yaml:snakeyaml:' ))
92
+ include(dependency(' com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:' ))
93
+ include(dependency(' javax.servlet::' ))
94
+ include(dependency(' org.eclipse.jetty::' ))
95
+ include(dependency(' org.eclipse.jetty.orbit:javax.servlet:' ))
96
+ include(dependency(' org.postgresql:postgresql:' ))
97
+ include(dependency(' io.github.linktosriram.s3lite:core:' ))
98
+ include(dependency(' io.github.linktosriram.s3lite:api:' ))
99
+ include(dependency(' io.github.linktosriram.s3lite:http-client-url-connection:' ))
100
+ include(dependency(' io.github.linktosriram.s3lite:http-client-spi:' ))
101
+ include(dependency(' io.github.linktosriram.s3lite:util:' ))
102
+ include(dependency(' jakarta.xml.bind::' ))
103
+ include(dependency(' com.sun.xml.bind::' ))
104
+ exclude(" META-INF/maven/**" )
105
+ exclude(" META-INF/services/**" )
106
+ }
107
+ relocate(' org.json.simple' , ' org.dynmap.json.simple' )
108
+ relocate(' org.yaml.snakeyaml' , ' org.dynmap.snakeyaml' )
109
+ relocate(' org.eclipse.jetty' , ' org.dynmap.jetty' )
110
+ relocate(' org.owasp.html' , ' org.dynmap.org.owasp.html' )
111
+ relocate(' javax.servlet' , ' org.dynmap.javax.servlet' )
112
+ relocate(' org.postgresql' , ' org.dynmap.org.postgresql' )
113
+ relocate(' io.github.linktosriram.s3lite' , ' org.dynmap.s3lite' )
74
114
archiveName = " Dynmap-${ parent.version} -forge-1.12.2.jar"
75
115
destinationDir = file ' ../target'
76
116
manifest {
0 commit comments