mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-04 17:50:18 +01:00
83 lines
3.0 KiB
Groovy
83 lines
3.0 KiB
Groovy
description = "DynmapCore"
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
eclipse {
|
|
project {
|
|
name = "Dynmap(DynmapCore)"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':DynmapCoreAPI', configuration: 'shadow')
|
|
implementation 'javax.servlet:javax.servlet-api:3.1'
|
|
implementation 'org.eclipse.jetty:jetty-server:9.4.26.v20200117'
|
|
implementation 'org.eclipse.jetty:jetty-servlet:9.4.26.v20200117'
|
|
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
|
|
implementation 'org.yaml:snakeyaml:1.23' // DON'T UPDATE - NEWER ONE TRIPS ON WINDOWS ENCODED FILES
|
|
implementation 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20180219.1'
|
|
implementation 'org.postgresql:postgresql:42.2.18'
|
|
implementation 'io.github.linktosriram:s3-lite-core:0.2.0'
|
|
implementation 'io.github.linktosriram:s3-lite-api:0.2.0'
|
|
implementation 'io.github.linktosriram:s3-lite-http-client-url-connection:0.2.0'
|
|
implementation 'io.github.linktosriram:s3-lite-http-client-spi:0.2.0'
|
|
implementation 'io.github.linktosriram:s3-lite-util:0.2.0'
|
|
}
|
|
|
|
processResources {
|
|
// replace stuff in mcmod.info, nothing else
|
|
filesMatching([
|
|
'core.yml',
|
|
'lightings.txt',
|
|
'perspectives.txt',
|
|
'shaders.txt',
|
|
'extracted/web/version.js',
|
|
'extracted/web/index.html',
|
|
'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:'))
|
|
include(dependency('org.yaml:snakeyaml:'))
|
|
include(dependency('com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:'))
|
|
include(dependency('javax.servlet::'))
|
|
include(dependency('org.eclipse.jetty::'))
|
|
include(dependency('org.eclipse.jetty.orbit:javax.servlet:'))
|
|
include(dependency('org.postgresql:postgresql:'))
|
|
include(dependency('io.github.linktosriram:s3-lite-core:'))
|
|
include(dependency('io.github.linktosriram:s3-lite-api:'))
|
|
include(dependency('io.github.linktosriram:s3-lite-http-client-url-connection:'))
|
|
include(dependency('io.github.linktosriram:s3-lite-http-client-spi:'))
|
|
include(dependency('io.github.linktosriram:s3-lite-util:'))
|
|
include(dependency(':DynmapCoreAPI'))
|
|
exclude("META-INF/maven/**")
|
|
exclude("META-INF/services/**")
|
|
}
|
|
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' )
|
|
relocate('org.postgresql', 'org.dynmap.org.postgresql')
|
|
relocate('io.github.linktosriram.s3lite', 'org.dynmap.s3lite')
|
|
|
|
destinationDir = file '../target'
|
|
classifier = ''
|
|
}
|
|
|
|
artifacts {
|
|
archives shadowJar
|
|
}
|