2018-08-12 07:27:15 +02:00
description = "DynmapCore"
2022-02-07 17:04:12 +01:00
apply plugin: 'eclipse'
eclipse {
project {
name = "Dynmap(DynmapCore)"
}
}
2023-08-20 21:38:38 +02:00
sourceCompatibility = targetCompatibility = compileJava . sourceCompatibility = compileJava . targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
2018-08-12 07:27:15 +02:00
dependencies {
2023-06-21 04:06:10 +02:00
implementation project ( ':DynmapCoreAPI' )
2021-06-27 13:51:12 +02:00
implementation 'javax.servlet:javax.servlet-api:3.1'
2023-06-21 04:06:10 +02:00
implementation 'org.eclipse.jetty:jetty-server:9.4.26.v20200117'
2021-06-27 13:51:12 +02:00
implementation 'org.eclipse.jetty:jetty-servlet:9.4.26.v20200117'
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
2021-12-07 22:51:50 +01:00
implementation 'org.yaml:snakeyaml:1.23' // DON'T UPDATE - NEWER ONE TRIPS ON WINDOWS ENCODED FILES
2021-06-27 13:51:12 +02:00
implementation 'com.googlecode.owasp-java-html-sanitizer:owasp-java-html-sanitizer:20180219.1'
implementation 'org.postgresql:postgresql:42.2.18'
2023-11-16 12:19:16 +01:00
implementation 'io.github.linktosriram.s3lite:core:0.0.2-SNAPSHOT'
implementation 'io.github.linktosriram.s3lite:api:0.0.2-SNAPSHOT'
implementation 'io.github.linktosriram.s3lite:http-client-url-connection:0.0.2-SNAPSHOT'
implementation 'io.github.linktosriram.s3lite:http-client-spi:0.0.2-SNAPSHOT'
implementation 'io.github.linktosriram.s3lite:util:0.0.2-SNAPSHOT'
2023-11-17 04:21:35 +01:00
implementation 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.1'
implementation 'com.sun.xml.bind:jaxb-impl:3.0.0'
2018-08-12 07:27:15 +02:00
}
processResources {
// replace stuff in mcmod.info, nothing else
2021-06-27 14:18:53 +02:00
filesMatching ( [
'core.yml' ,
2021-06-27 19:38:45 +02:00
'lightings.txt' ,
'perspectives.txt' ,
'shaders.txt' ,
'extracted/web/version.js' ,
'extracted/web/index.html' ,
'extracted/web/login.html' ,
2021-06-27 14:18:53 +02:00
] ) {
2018-08-12 07:27:15 +02:00
// 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:' ) )
2021-02-08 05:50:41 +01:00
include ( dependency ( 'org.postgresql:postgresql:' ) )
2023-11-16 12:19:16 +01:00
include ( dependency ( 'io.github.linktosriram.s3lite:core:' ) )
include ( dependency ( 'io.github.linktosriram.s3lite:api:' ) )
include ( dependency ( 'io.github.linktosriram.s3lite:http-client-url-connection:' ) )
include ( dependency ( 'io.github.linktosriram.s3lite:http-client-spi:' ) )
2023-11-17 04:21:35 +01:00
include ( dependency ( 'io.github.linktosriram.s3lite:util:' ) )
include ( dependency ( 'jakarta.xml.bind::' ) )
include ( dependency ( 'com.sun.xml.bind::' ) )
2018-09-04 02:09:37 +02:00
include ( dependency ( ':DynmapCoreAPI' ) )
2021-12-09 03:34:03 +01:00
exclude ( "META-INF/maven/**" )
exclude ( "META-INF/services/**" )
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' )
2021-02-08 05:50:41 +01:00
relocate ( 'org.postgresql' , 'org.dynmap.org.postgresql' )
2022-02-21 03:58:21 +01:00
relocate ( 'io.github.linktosriram.s3lite' , 'org.dynmap.s3lite' )
2018-08-12 07:27:15 +02:00
destinationDir = file '../target'
classifier = ''
}
artifacts {
archives shadowJar
}