2018-08-12 07:27:15 +02:00
|
|
|
description = "DynmapCore"
|
|
|
|
|
|
|
|
dependencies {
|
2018-08-13 04:20:56 +02:00
|
|
|
compile project(path: ':DynmapCoreAPI', configuration: 'shadow')
|
2020-01-13 01:09:55 +01:00
|
|
|
compile 'javax.servlet:javax.servlet-api:3.1'
|
2020-02-06 06:47:03 +01:00
|
|
|
compile 'org.eclipse.jetty:jetty-server:9.4.26.v20200117'
|
|
|
|
compile 'org.eclipse.jetty:jetty-servlet:9.4.26.v20200117'
|
2020-01-13 01:09:55 +01:00
|
|
|
compile 'com.googlecode.json-simple:json-simple:1.1.1'
|
2019-01-27 21:16:12 +01:00
|
|
|
compile 'org.yaml:snakeyaml:1.23'
|
2018-08-12 07:27:15 +02:00
|
|
|
compile 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20180219.1'
|
|
|
|
}
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
// replace stuff in mcmod.info, nothing else
|
|
|
|
from('src/main/resources') {
|
|
|
|
include 'core.yml'
|
|
|
|
include 'lightings.txt'
|
|
|
|
include 'perspectives.txt'
|
2018-08-21 03:39:39 +02:00
|
|
|
include 'shaders.txt'
|
2018-08-12 07:27:15 +02:00
|
|
|
include 'extracted/web/version.js'
|
|
|
|
include 'extracted/web/index.html'
|
|
|
|
include 'extracted/web/login.html'
|
|
|
|
// replace version and mcversion
|
|
|
|
expand(
|
|
|
|
buildnumber: project.parent.ext.globals.buildNumber,
|
|
|
|
version: project.version
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
classifier = 'unshaded'
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
dependencies {
|
|
|
|
include(dependency('com.googlecode.json-simple:json-simple:'))
|
2020-01-13 01:11:35 +01:00
|
|
|
include(dependency('org.yaml:snakeyaml:'))
|
|
|
|
include(dependency('com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:'))
|
2020-01-13 01:03:57 +01:00
|
|
|
include(dependency('javax.servlet::'))
|
2020-01-13 01:11:35 +01:00
|
|
|
include(dependency('org.eclipse.jetty::'))
|
2018-08-12 07:27:15 +02:00
|
|
|
include(dependency('org.eclipse.jetty.orbit:javax.servlet:'))
|
2018-09-04 02:09:37 +02:00
|
|
|
include(dependency(':DynmapCoreAPI'))
|
2018-08-12 07:27:15 +02:00
|
|
|
}
|
|
|
|
relocate('org.json.simple', 'org.dynmap.json.simple')
|
|
|
|
relocate('org.yaml.snakeyaml', 'org.dynmap.snakeyaml')
|
|
|
|
relocate('org.eclipse.jetty', 'org.dynmap.jetty')
|
|
|
|
relocate('org.owasp.html', 'org.dynmap.org.owasp.html')
|
|
|
|
relocate('javax.servlet', 'org.dynmap.javax.servlet' )
|
|
|
|
destinationDir = file '../target'
|
|
|
|
classifier = ''
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives shadowJar
|
|
|
|
}
|