2022-05-29 12:35:53 +02:00
|
|
|
// Workaround for Shadow not supporting Java 19 classes.
|
|
|
|
// Remove this once Shadow updates.
|
|
|
|
// See: https://github.com/johnrengelman/shadow/pull/770
|
|
|
|
// See: https://discord.com/channels/722722769950998560/793019909055578113/978939925061857315
|
|
|
|
buildscript {
|
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy {
|
|
|
|
force("org.ow2.asm:asm:9.3")
|
|
|
|
force("org.ow2.asm:asm-commons:9.3")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-12 06:11:20 +02:00
|
|
|
plugins {
|
2021-12-03 17:28:12 +01:00
|
|
|
id "com.github.johnrengelman.shadow" version "7.1.0"
|
2018-08-12 06:11:20 +02:00
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
|
|
|
|
2022-02-07 17:04:12 +01:00
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
eclipse {
|
|
|
|
project {
|
|
|
|
name = "Dynmap"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-12 06:11:20 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
mavenLocal()
|
|
|
|
maven { url "https://oss.sonatype.org/content/repositories/releases" }
|
2020-07-26 06:37:22 +02:00
|
|
|
maven { url "https://repo.mikeprimm.com" }
|
2020-01-27 05:43:36 +01:00
|
|
|
maven { url "https://repo.maven.apache.org/maven2" }
|
2018-08-12 06:11:20 +02:00
|
|
|
maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
|
2019-12-01 03:38:05 +01:00
|
|
|
maven { url "https://repo.codemc.org/repository/maven-public/" }
|
2018-08-12 06:11:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
group = 'us.dynmap'
|
2023-03-19 06:37:19 +01:00
|
|
|
version = '3.5-SNAPSHOT'
|
2018-08-12 06:11:20 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
class Globals {
|
|
|
|
String buildNumber = System.getenv().BUILD_NUMBER ?: "Dev"
|
|
|
|
}
|
|
|
|
ext {
|
|
|
|
globals = new Globals()
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'maven-publish'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
}
|
|
|
|
}
|
2018-08-13 04:55:40 +02:00
|
|
|
|
|
|
|
clean {
|
|
|
|
delete "target"
|
|
|
|
}
|
|
|
|
|
|
|
|
task setupCIWorkspace {
|
2018-08-16 09:09:04 +02:00
|
|
|
}
|