2022-04-24 04:42:01 +00:00
|
|
|
plugins {
|
|
|
|
id "java"
|
|
|
|
id "maven-publish"
|
2022-04-24 05:43:54 +00:00
|
|
|
id "com.github.johnrengelman.shadow" version "7.1.2"
|
2022-04-24 04:42:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "dev.plex"
|
|
|
|
version = "1.1-SNAPSHOT"
|
|
|
|
description = "Plex"
|
|
|
|
|
2022-04-24 05:01:19 +00:00
|
|
|
subprojects {
|
|
|
|
apply plugin: "java"
|
|
|
|
apply plugin: "maven-publish"
|
2022-04-24 05:43:54 +00:00
|
|
|
apply plugin: "com.github.johnrengelman.shadow"
|
2022-04-24 04:42:01 +00:00
|
|
|
|
2022-04-24 05:01:19 +00:00
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url = uri("https://papermc.io/repo/repository/maven-public/")
|
|
|
|
}
|
2022-04-24 04:42:01 +00:00
|
|
|
|
2022-04-24 05:01:19 +00:00
|
|
|
maven {
|
|
|
|
url = uri("https://repository.apache.org/content/repositories/snapshots/")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://repo.maven.apache.org/maven2/")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://jitpack.io")
|
|
|
|
content {
|
|
|
|
includeGroup("com.github.MilkBowl")
|
2022-04-24 04:42:01 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-24 05:01:19 +00:00
|
|
|
|
|
|
|
mavenCentral()
|
2022-04-24 04:42:01 +00:00
|
|
|
}
|
2022-04-24 05:01:19 +00:00
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/")
|
|
|
|
def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
|
|
|
|
url = rootProject.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("plexUser")
|
|
|
|
password = System.getenv("plexPassword")
|
|
|
|
}
|
2022-04-24 04:42:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-24 05:43:54 +00:00
|
|
|
}
|
|
|
|
|
2022-05-04 12:18:07 +00:00
|
|
|
clean {
|
|
|
|
dependsOn(":api:clean")
|
|
|
|
dependsOn(":server:clean")
|
2022-05-05 06:38:23 +00:00
|
|
|
dependsOn(":proxy:clean")
|
2022-05-04 12:18:07 +00:00
|
|
|
}
|
|
|
|
|
2022-04-24 05:43:54 +00:00
|
|
|
task copyJars(type: Copy, dependsOn: subprojects.jar) {
|
2022-05-04 12:18:07 +00:00
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
2022-04-24 05:43:54 +00:00
|
|
|
from(subprojects.jar)
|
|
|
|
from(subprojects.shadowJar)
|
|
|
|
into project.file('build/libs')
|
2022-04-24 04:42:01 +00:00
|
|
|
}
|